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:
authortomneedham <tom@owncloud.com>2014-06-23 13:32:30 +0400
committertomneedham <tom@owncloud.com>2014-06-23 13:32:30 +0400
commit724155b81d51c13c2dc5d9893e7ae49f5bd8e18e (patch)
tree04d7cbd83860a9bf3e7713a718cae6ba7ed5ca62 /js
parent5c57a92e4ca67acb89cd397744392c9077e6d73b (diff)
Only launch save event if not already saving
Diffstat (limited to 'js')
-rw-r--r--js/editor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/editor.js b/js/editor.js
index 5c9a74d..189f758 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -255,7 +255,9 @@ function showFileEditor(dir, filename) {
sender: "editor"
},
exec: function () {
- doFileSave();
+ if(!$('#editor').attr('data-saving')){
+ doFileSave();
+ }
}
});
giveEditorFocus();
@@ -407,4 +409,4 @@ $(document).ready(function () {
OC.Notification.hide();
}
});
-}); \ No newline at end of file
+});