Skip to content

Commit

Permalink
Fixes snikch#49, Chrome and Safari show browser confirm dialog in add…
Browse files Browse the repository at this point in the history
…ition to the GUI dialog.
  • Loading branch information
NightOwl888 committed May 31, 2015
1 parent def22c2 commit 26fdfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.dirtyforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ if (typeof jQuery == 'undefined') throw ("jQuery Required");
}

var decidingContinue = function(ev){
window.onbeforeunload = null; // fix for chrome
clearUnload(); // fix for chrome/safari
ev.preventDefault();
settings.dialogStash = false;
$(document).trigger('decidingcontinued.dirtyforms');
Expand Down

0 comments on commit 26fdfec

Please sign in to comment.