OpenXE/www/pages/content/savepagereally.tpl
2021-05-21 08:49:41 +02:00

32 lines
477 B
Smarty

<script type="text/javascript">
$(document).ready ( function () {
$("form").submit (
form_unchange
);
$(":input").keydown (
form_changed
);
var form_change_noticed = false;
function form_changed () {
form_change_noticed = true;
}
function form_unchange () {
form_change_noticed = false;
}
window.onbeforeunload= function(){
if ( form_change_noticed ) {
return "Es gibt noch ungespeicherte Änderungen!";
} else
return;
};
});
</script>