From d575de04eb78d39abbb4d0b8e979150210d624d1 Mon Sep 17 00:00:00 2001 From: benji Date: Wed, 7 Oct 2015 16:04:09 +0200 Subject: [PATCH] Relative url --- app/assets/javascripts/orders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/orders.js b/app/assets/javascripts/orders.js index ae3f0c2..d83c5ba 100644 --- a/app/assets/javascripts/orders.js +++ b/app/assets/javascripts/orders.js @@ -51,7 +51,7 @@ ready = function() { event.preventDefault(); barcode = $(this).find("input[type=number]").val(); $.ajax({ - url: "/barcodes/" + barcode, + url: "/tap/barcodes/" + barcode, success: function(data) { increment_product(data["id"]); $("#from_barcode_form")[0].reset();