more documentation for navigate away pompt js util

closes #377
This commit is contained in:
Felix Hamann 2019-05-21 21:57:34 +02:00
parent 9d49de4382
commit 8b4bdf9489

View File

@ -308,6 +308,8 @@
}
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) {
return false;
}