Skip to content

Commit

Permalink
Resolve multiple rooms addition issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Kumar committed Feb 3, 2022
1 parent ad9d7bb commit dc2fe9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/admin/orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ function init()

if (go)
{
$('#submitAddProduct').attr('disabled', true);
var query = 'ajax=1&token='+token+'&action=addProductOnOrder&id_order='+id_order+'&';

query += $('#add_product_warehouse').serialize()+'&';
Expand Down Expand Up @@ -537,6 +538,9 @@ function init()
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
jAlert("Impossible to add the room to the cart.\n\ntextStatus: '" + textStatus + "'\nerrorThrown: '" + errorThrown + "'\nresponseText:\n" + XMLHttpRequest.responseText);
},
complete: function() {
$('#submitAddProduct').removeAttr('disabled');
}
});
ajaxQueries.push(ajax_query);
Expand Down

0 comments on commit dc2fe9d

Please sign in to comment.