Changed the build process it generates a devel and a prod version

of the source, added some screenshots and a sample printout, couple
bugfixes.
This commit is contained in:
git@daemon.de
2013-09-14 13:14:06 +02:00
parent 81aa7e83e4
commit 10e5d547f3
25 changed files with 56118 additions and 50 deletions

21
js/confirm.js Normal file
View File

@@ -0,0 +1,21 @@
function confirminit() {
window.onbeforeunload = function(e) {
if(window.confirmExit) return confirmExit();
};
}
var hadConfirmExit = false;
function checkUnsavedChanges() {
if(App.store && App.store.isDirty && window.hadConfirmExit === false) {
if(confirm("unsafed changes"))
saveChanges();
}
}
function confirmExit() {
hadConfirmExit = true;
if(App.store && App.store.isDirty) {
return "ok";
}
}