parent
9d49de4382
commit
8b4bdf9489
@ -308,6 +308,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function beforeUnloadHandler(event) {
|
function beforeUnloadHandler(event) {
|
||||||
|
// allow the event to happen if the form was not touched by the
|
||||||
|
// user or the unload event was initiated by a form submit
|
||||||
if (!touched || unloadDueToSubmit) {
|
if (!touched || unloadDueToSubmit) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user