Merge pull request #43 from pranavk/master
Do not show scary warning dialog
This commit is contained in:
commit
6eb2e7c474
@ -312,9 +312,6 @@ var documentsMain = {
|
|||||||
prepareSession : function(){
|
prepareSession : function(){
|
||||||
documentsMain.isEditorMode = true;
|
documentsMain.isEditorMode = true;
|
||||||
documentsMain.overlay.documentOverlay('show');
|
documentsMain.overlay.documentOverlay('show');
|
||||||
$(window).on('beforeunload', function(){
|
|
||||||
return t('richdocuments', "Leaving this page in Editor mode might cause unsaved data. It is recommended to use 'Close' button instead.");
|
|
||||||
});
|
|
||||||
$(window).on("unload", documentsMain.onTerminate);
|
$(window).on("unload", documentsMain.onTerminate);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user