copy current state of medienstaatsvertrag.org, to be verified

This commit is contained in:
Milan
2017-12-18 10:58:50 +01:00
parent 8b35e7c5c2
commit 69e5d0e4c6
401 changed files with 74197 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
var pageHasChangedCounter=0;
var pageIsLoaded=0;
function pageHasChanged(){
if (pageIsLoaded==0) return;
pageHasChangedCounter++;
}
function pageLeaveHandler(){
$('div.editor input' ).change(function(){pageHasChanged()});
$('div.editor textarea').change(function(){pageHasChanged()});
$('div.editor select' ).change(function(){pageHasChanged()});
window.onbeforeunload = function() {
if(pageHasChangedCounter==0)return null;
return "Unsaved changed! Continue?";
};
//$(window).unload(function(){});
pageIsLoaded=1;
}
function leavePage(){
pageHasChangedCounter=0;
return 1;
}