Verbesserungen i80n, Bugfixes, uvm
This commit is contained in:
@@ -17,7 +17,7 @@ function addBlog(){
|
||||
|
||||
console.log(b);
|
||||
|
||||
if(window.confirm('Eintrag wirklich speichern?')){
|
||||
if(window.confirm(i18n.blog.confirm_save)){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/intern/nachrichten/add",
|
||||
@@ -34,7 +34,7 @@ function addBlog(){
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(e);
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -48,7 +48,7 @@ function editBlog(blogId){
|
||||
b.published = $('#blogPublished_'+blogId).is(":checked") ? "1" : "0";
|
||||
b.language = $('#blogLanguage_'+blogId).val();
|
||||
|
||||
if(window.confirm('Eintrag wirklich speichern?')){
|
||||
if(window.confirm(i18n.blog.confirm_save)){
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "/intern/nachrichten/edit",
|
||||
@@ -62,7 +62,7 @@ function editBlog(blogId){
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(e);
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -72,7 +72,7 @@ function deleteBlog(blogId){
|
||||
let b = {};
|
||||
b.id = blogId;
|
||||
|
||||
if(window.confirm('Eintrag wirklich löschen?')){
|
||||
if(window.confirm(i18n.blog.confirm_delete)){
|
||||
$.ajax({
|
||||
type:"DELETE",
|
||||
url:"/intern/nachrichten/delete",
|
||||
@@ -89,7 +89,7 @@ function deleteBlog(blogId){
|
||||
}
|
||||
},
|
||||
error:function(r, a, e){
|
||||
alert(e);
|
||||
alert(i18n.common.error_occurred + e);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user