1. LoginStatus-Meldung wurde nicht angezeigt 2. Farben bei den Terminen hinzugefügt 3. Aufgaben werden angezeigt im Kalender Code aufgeräumt
92 lines
1.8 KiB
JavaScript
92 lines
1.8 KiB
JavaScript
function showSpinner() {
|
|
$("#mySpinner").modal(
|
|
{
|
|
backdrop: "static",
|
|
keyboard: false
|
|
}
|
|
);
|
|
}
|
|
|
|
function hideSpinner() {
|
|
$("#mySpinner").modal("hide");
|
|
}
|
|
|
|
function showMessagePopup(title, message) {
|
|
$("#popupTitle").text(title);
|
|
$("#popupMessage").text(message);
|
|
|
|
$("#messagePopup").modal(
|
|
{
|
|
backdrop: "static",
|
|
keyboard: false
|
|
}
|
|
);
|
|
}
|
|
|
|
function showMessagePopupWithCallback(title, message, callback, executeCallbackByBothButtons) {
|
|
$("#popupTitle").text(title);
|
|
$("#popupMessage").text(message);
|
|
|
|
$("#message-popup-ok-btn").on("click", function() {
|
|
callback();
|
|
});
|
|
|
|
if (executeCallbackByBothButtons === true) {
|
|
$("#message-popup-close-btn").on("click",
|
|
function() {
|
|
callback();
|
|
});
|
|
}
|
|
|
|
$("#messagePopup").modal(
|
|
{
|
|
backdrop: "static",
|
|
keyboard: false
|
|
}
|
|
);
|
|
}
|
|
|
|
function submitForm(formToSubmit) {
|
|
showSpinner();
|
|
formToSubmit.form.submit();
|
|
}
|
|
|
|
function isEmptyOrSpaces(str) {
|
|
return str === null || str === undefined || str.match(/^ *$/) !== null;
|
|
}
|
|
|
|
function isInArray(value, array) {
|
|
if(value === undefined || value === null || array === undefined || array === null) {
|
|
return false;
|
|
}
|
|
|
|
if(!Array.isArray(array)) {
|
|
return false;
|
|
}
|
|
|
|
var intValue = parseInt(value, 10);
|
|
|
|
if(isNaN(intValue)) {
|
|
return false;
|
|
}
|
|
|
|
for (var i = 0; i < array.length; i++) {
|
|
if (array[i] === intValue) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
function showMessagePopupWithHtml(title, html) {
|
|
$("#popupTitle").text(title);
|
|
$("#popupMessage").html(html);
|
|
|
|
$("#messagePopup").modal(
|
|
{
|
|
backdrop: "static",
|
|
keyboard: false
|
|
}
|
|
);
|
|
} |