Fixed: multiple requests are sent to admincustomer in case admin double clicks on the add new customer
This commit is contained in:
@@ -885,9 +885,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
let customerSearchAjax = '';
|
||||
function searchCustomers()
|
||||
{
|
||||
$.ajax({
|
||||
abortRunningAjax(customerSearchAjax);Add commentMore actions
|
||||
customerSearchAjax = $.ajax({
|
||||
type:"POST",
|
||||
url : "{$link->getAdminLink('AdminCustomers')}",
|
||||
async: true,
|
||||
@@ -927,6 +929,12 @@
|
||||
});
|
||||
}
|
||||
|
||||
function abortRunningAjax(ajaxVar) {
|
||||
if (ajaxVar) {
|
||||
ajaxVar.abort();
|
||||
}
|
||||
}
|
||||
|
||||
function setupCustomer(idCustomer)
|
||||
{
|
||||
//$('#carts').show();// by webkul
|
||||
|
||||
Reference in New Issue
Block a user