double barcodes

This commit is contained in:
benji 2015-10-27 20:57:43 +01:00
parent 91061f053f
commit 80899f21aa

View file

@ -52,7 +52,7 @@ ready = function() {
barcode = $(this).find("input[type=number]").val(); barcode = $(this).find("input[type=number]").val();
$("#from_barcode_form")[0].reset(); $("#from_barcode_form")[0].reset();
$.ajax({ $.ajax({
url: $("#from_barcode_form").data("url") + "/barcodes/" + barcode, url: $("#from_barcode_form").data("url") + barcode,
success: function(data) { success: function(data) {
if (data != null) { if (data != null) {
increment_product(data["id"]); increment_product(data["id"]);