Stay/Leave popup. Closes #39

pull/1/head
Victor Dubiniuk 11 years ago
parent fdf7a602d4
commit d69c02e2bb

@ -126,11 +126,13 @@ var documentsMain = {
prepareSession : function(){
documentsMain.isEditorMode = true;
documentsMain.UI.showOverlay();
$(window).on('beforeunload', function(){return t('documents', "Leaving this page in Editor mode might cause unsaved data. It is recommended to use 'Close' button instead.")})
},
prepareGrid : function(){
documentsMain.isEditorMode = false;
documentsMain.UI.hideOverlay();
$(window).off('beforeunload');
},
initSession: function(response) {

Loading…
Cancel
Save