diff --git a/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb b/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb index 0bc4ba3f927..060b212da70 100644 --- a/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb +++ b/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb @@ -45,7 +45,7 @@ $(document).ready(function() { if (quantity > maxQuantity) { quantity = maxQuantity; save.parents('tr').find('input.line_item_quantity').val(maxQuantity); - alert('<%= I18n.t("js.admin.orders.quantity_adjusted") %>'); + alert(t("js.admin.orders.quantity_adjusted")); } toggleItemEdit(); @@ -84,7 +84,7 @@ adjustItems = function(shipment_number, variant_id, quantity){ url += '.json'; if (new_quantity == 0) { - alert('<%= I18n.t("js.admin.orders.quantity_unchanged") %>'); + alert(t("js.admin.orders.quantity_unchanged")); } else { $.ajax({ type: "PUT",