|
@@ -1,6 +1,17 @@
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
var lastOpenedBoxData; // Stores JSON-data of last opened editBox
|
|
var lastOpenedBoxData; // Stores JSON-data of last opened editBox
|
|
|
|
|
+ var notifications = []; // Stores noty-Notifications
|
|
|
|
|
+
|
|
|
|
|
+ function noty_error_retry() {
|
|
|
|
|
+ notifications.push(
|
|
|
|
|
+ noty({
|
|
|
|
|
+ layout : 'topCenter',
|
|
|
|
|
+ text : 'Irgendwas ist schief gelaufen.<br>Bitte probieren Sie es später noch einmal.',
|
|
|
|
|
+ type : 'error',
|
|
|
|
|
+ timeout : 3000
|
|
|
|
|
+ }));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
function getUrlGetParameter(val) {
|
|
function getUrlGetParameter(val) {
|
|
|
var result = "Not found",
|
|
var result = "Not found",
|
|
@@ -91,12 +102,7 @@ $(document).ready(function() {
|
|
|
});
|
|
});
|
|
|
} catch(e) {
|
|
} catch(e) {
|
|
|
console.log(e); // DBG
|
|
console.log(e); // DBG
|
|
|
- var n = noty({
|
|
|
|
|
- layout : 'topCenter',
|
|
|
|
|
- text : 'Irgendwas ist schief gelaufen.<br>Bitte probieren Sie es später noch einmal.',
|
|
|
|
|
- type : 'error',
|
|
|
|
|
- timeout : 5000
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ noty_error_retry();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -149,12 +155,8 @@ $(document).ready(function() {
|
|
|
if(r['status'] == "OK") {
|
|
if(r['status'] == "OK") {
|
|
|
location.reload();
|
|
location.reload();
|
|
|
} else {
|
|
} else {
|
|
|
- var n = noty({
|
|
|
|
|
- layout : 'topCenter',
|
|
|
|
|
- text : 'Irgendwas ist schief gelaufen.<br>Bitte probieren Sie es später noch einmal.',
|
|
|
|
|
- type : 'error',
|
|
|
|
|
- timeout : 5000
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.log(r);
|
|
|
|
|
+ noty_error_retry();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -174,12 +176,8 @@ $(document).ready(function() {
|
|
|
if(r['status'] == "OK") {
|
|
if(r['status'] == "OK") {
|
|
|
location.reload();
|
|
location.reload();
|
|
|
} else {
|
|
} else {
|
|
|
- var n = noty({
|
|
|
|
|
- layout : 'topCenter',
|
|
|
|
|
- text : 'Irgendwas ist schief gelaufen.<br>Bitte probieren Sie es später noch einmal.',
|
|
|
|
|
- type : 'error',
|
|
|
|
|
- timeout : 5000
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.log(r);
|
|
|
|
|
+ noty_error_retry();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -200,12 +198,8 @@ $(document).ready(function() {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- var n = noty({
|
|
|
|
|
- layout : 'topCenter',
|
|
|
|
|
- text : 'Irgendwas ist schief gelaufen.<br>Bitte probieren Sie es später noch einmal.',
|
|
|
|
|
- type : 'error',
|
|
|
|
|
- timeout : 5000
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.log(r);
|
|
|
|
|
+ noty_error_retry();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|