diff --git a/app/assets/javascripts/orders.js b/app/assets/javascripts/orders.js index 8e35865..f6e0f01 100644 --- a/app/assets/javascripts/orders.js +++ b/app/assets/javascripts/orders.js @@ -52,7 +52,7 @@ ready = function() { barcode = $(this).find("input[type=number]").val(); $("#from_barcode_form")[0].reset(); $.ajax({ - url: $("#from_barcode_form").data("url") + "/barcodes/" + barcode, + url: $("#from_barcode_form").data("url") + barcode, success: function(data) { if (data != null) { increment_product(data["id"]);