Hello, I don’t need this new feature in 24.19 (Warning users before leaving the detail view form with unsaved changes using beforeunload event.
) in my POS project. Is it possible to disable it for a specific detail view?
How to disable warning before leaving the detail view form with unsaved changes
Re: How to disable warning before leaving the detail view form with unsaved changes
this is my solution (i added window.onbeforeunload = null;):
var dv = AppGiniHelper.DV;
var actionbuttons = dv.actionbuttons;
var group = actionbuttons.addGroup("", "", "highlight");
group.addButton(
"Tischplan",
function () {
window.onbeforeunload = null;
location.href = "tablemap.php";
},
Variation.Info,
""
);
var dv = AppGiniHelper.DV;
var actionbuttons = dv.actionbuttons;
var group = actionbuttons.addGroup("", "", "highlight");
group.addButton(
"Tischplan",
function () {
window.onbeforeunload = null;
location.href = "tablemap.php";
},
Variation.Info,
""
);