From 41f2f63907edb0644939a7c83957988bf6261b16 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Tue, 12 Apr 2016 16:45:32 +0530 Subject: [PATCH] Do not show scary warning dialog ... since we save to disk on abnormal client termination. --- js/documents.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/documents.js b/js/documents.js index 65b0b2dd..4644c953 100644 --- a/js/documents.js +++ b/js/documents.js @@ -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); },