Skip to content

Commit

Permalink
Merge pull request #318 from abhishek-webkul/gli-696
Browse files Browse the repository at this point in the history
Resolve multiple rooms addition issue on AdminOrdersController
  • Loading branch information
rohit053 authored Feb 8, 2022
2 parents 8ae5053 + dc2fe9d commit fbae18e
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 fbae18e

Please sign in to comment.