fire a warning before closing an unsaved file

This commit is contained in:
ilvalle
2013-06-12 13:18:48 +02:00
parent 6af173c853
commit 4f15c03686
3 changed files with 18 additions and 8 deletions
+2 -3
View File
@@ -66,9 +66,8 @@ function doClickSave() {
'doClickSave');
},
success: function(json,text,xhr){
jQuery(editor).data('saved', true); // Set as saved
editor.on("change", store_changes_function); // Re-enable change watcher
// reenable disabled submit button
var t=jQuery("input[name='save']");
t.attr('class','');