Systemerweiterungen
This commit is contained in:
@ -1,17 +1,22 @@
|
||||
function onClickSaveParameter() {
|
||||
var inputs = $(":input").serializeArray()
|
||||
inputs = JSON.stringify(inputs)
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_parameter.php',
|
||||
data: {
|
||||
'function': 'saveParameter'
|
||||
'function': 'saveParameter',
|
||||
'inputs': inputs
|
||||
},
|
||||
success: function(result) {
|
||||
alert(result);
|
||||
// document.getElementById("del").innerHTML = "<strong>entfernt</strong>";
|
||||
//Text einblenden geht nicht, da ein Refresh gemacht wird. Dann sieht man den Text nicht
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?";
|
||||
});
|
||||
success: function(result) { //we got the response
|
||||
if(result!=''){
|
||||
var a = result.split('|***|');
|
||||
$('#msg').show().delay(5000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user