Merge pull request #43 from pranavk/master

Do not show scary warning dialog
This commit is contained in:
Andras Timar 2016-04-13 14:16:49 +02:00
commit 6eb2e7c474

View File

@ -312,9 +312,6 @@ var documentsMain = {
prepareSession : function(){
documentsMain.isEditorMode = true;
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);
},