Besseres CSS; News

This commit is contained in:
2026-03-25 00:02:08 +01:00
parent ae9592902c
commit 7bf444123d
17 changed files with 310 additions and 107 deletions

View File

@@ -1,11 +1,57 @@
function remove(lang){
let s = [];
let data = {};
data["delete"] = [];
$("#ticker_" + lang).each(function(){
s.push($(this).val());
data["delete"].push($(this).val());
});
console.log(JSON.stringify(data));
$.ajax({
type: "DELETE",
url: "/intern/ticker/remove",
data: data,
dataType: "json",
success: function (d) {
switch(d.messageStatus){
case "success":
setzeFehlermeldung(d.messageStatus, "Löschen erfolgreich!");
location.reload();
break;
case "failure":
setzeFehlermeldung(d.messageStatus, d.errorMessage);
break;
}
},
error: function (d, status, error) {
setzeFehlermeldung("failure", error);
}
});
console.log(JSON.stringify(s));
}
function insert(lang){
let data = {};
data.insert = $("#insert_" + lang).val();
data.lang = lang;
$.ajax({
type: "PUT",
url: "/intern/ticker/add",
data: data,
dataType: "json",
success: function (d) {
switch(d.messageStatus){
case "success":
setzeFehlermeldung(d.messageStatus, "Einfügen erfolgreich!");
location.reload();
break;
case "failure":
setzeFehlermeldung(d.messageStatus, d.errorMessage);
break;
}
},
error: function (d, status, error) {
setzeFehlermeldung("failure", error);
}
});
}