We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c94a73 commit 02bb853Copy full SHA for 02bb853
src/js/admin.js
@@ -11,12 +11,9 @@ window.addEventListener( 'beforeunload', function(e) {
11
let unsubmitted = document.getElementById( 'mc_unsubmitted' );
12
let hold = ( typeof( unsubmitted ) != 'undefined' && unsubmitted != null ) ? true : false;
13
if ( hold ) {
14
- // following two lines will cause the browser to ask the user if they
15
- // want to leave. The text of this dialog is controlled by the browser.
16
- e.preventDefault(); //per the standard
17
- e.returnValue = ''; //required for Chrome
+ // Prompt to check whether user wants to leave.
+ e.preventDefault();
18
}
19
- //else: user is allowed to leave without a warning dialog
20
});
21
22
let typeSelector = document.getElementById( 'typeupcoming' );
0 commit comments