AJAX Inventory POST (#37982)

This commit is contained in:
atm-lucas 2026-04-23 14:00:45 +02:00 committed by GitHub
parent e578be9461
commit acbbde99c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1323,10 +1323,11 @@ print '<script type="text/javascript">
var actionURL = "'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&page='.($page).$paramwithsearch.'";
$.ajax({
url: actionURL,
type: "POST",
data: form.serialize(),
cache: false,
success: function(result){
window.location.href = "'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&page='.($page - 1).$paramwithsearch.'&action=record";
window.location.href = "'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&page='.($page).$paramwithsearch.'&action=record";
}});
return false;
});