filenames

use kebab-case for file names
remove camelCase and snake_case
This commit is contained in:
Milan
2019-10-17 20:22:10 +02:00
parent c93b394307
commit 9792336ac8
87 changed files with 74 additions and 78 deletions

View File

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