Запилил вот такую штуку. тоже не помогает(
profile.updateDetails = function () {
//remove error messages if there are any
asengine.removeErrorMessages();
//turn on button loading state
asengine.loadingButton($("#update_details"), "Updating...");
//prepare data that will be sent to server
var data = {
action : "updateDetails",
details: {
first_name: $("#first_name").val(),
last_name : $("#last_name").val(),
address : $("#address").val(),
shopid : $("#shopid").val(),
scid : $("#scid").val(),
yandexmoney: $("#yandexmoney").val(),
kiosks : $("#kiosks").val(),
mobile : $("#mobile").val(),
webmoney : $("#webmoney").val()
}
};
//send data to server
$.ajax({
url: "ASEngine/ASAjax.php",
type: "POST",
data: data,
success: function (result) {
//return button to normal state
asengine.removeLoadingButton($("#update_details"));
if(result == "") {
asengine.displaySuccessMessage($("#form-details"),"Details updated successfully.");
}
else {
//display error messages
console.log(result);
asengine.displayErrorMessage($("#form-details input"));
asengine.displayErrorMessage(
$("#phone"),
"Error while updating database. Please try again."
);
}
}
});
};