Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2015-08-27 23:42:12 +0300
committerTom Needham <needham.thomas@gmail.com>2015-08-27 23:42:12 +0300
commit260db747fc6af518056c7d433da763c0478c8c70 (patch)
tree8dd1ffff5436c8797909915123d41bcfbca2358f /js
parent8966a73e4c13b9eab0746e1ffdeaf971cc2acf3e (diff)
Remove autosave WIP and fix reopen editor
Diffstat (limited to 'js')
-rw-r--r--js/editor.js20
1 files changed, 2 insertions, 18 deletions
diff --git a/js/editor.js b/js/editor.js
index 6a54ae0..4f4faa5 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -123,7 +123,8 @@ var Files_Texteditor = {
*/
_onReOpenTrigger: function() {
if($('#notification').data('reopeneditor') == true) {
- alert('todo'); // TODO
+ document.title = OCA.Files_Texteditor.file.name + ' - ' + document.title;
+ OCA.Files_Texteditor.$container.show();
}
},
@@ -262,7 +263,6 @@ var Files_Texteditor = {
_self.configureACE(file);
// Show the controls
_self.loadControlBar(file, _self.currentContext);
- //window.aceEditor.getSession().on('change', _self.setupAutosave);
window.aceEditor.focus();
},
function(message){
@@ -509,25 +509,9 @@ var Files_Texteditor = {
*/
hideEditor: function() {
this.$container.hide();
- this.unloadControlBar();
document.title = this.oldTitle;
},
- /**
- * Re opens the editor
- */
- reOpenEditor: function() {
- this.$container.show();
- }
-
- /**
- * Configure the autosave timer
- */
- //setupAutosave: function() {
- // clearTimeout(this.saveTimer);
- // this.saveTimer = setTimeout(OCA.Files_Texteditor._onSaveTrigger, 3000);
- //}
-
}
OCA.Files_Texteditor = Files_Texteditor;