diff options
author | tomneedham <tom@owncloud.com> | 2014-06-23 13:32:30 +0400 |
---|---|---|
committer | tomneedham <tom@owncloud.com> | 2014-06-23 13:32:30 +0400 |
commit | 724155b81d51c13c2dc5d9893e7ae49f5bd8e18e (patch) | |
tree | 04d7cbd83860a9bf3e7713a718cae6ba7ed5ca62 /js | |
parent | 5c57a92e4ca67acb89cd397744392c9077e6d73b (diff) |
Only launch save event if not already saving
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 6 |
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 +}); |