Pārlūkot izejas kodu

Merge branch 'chemi_branch' of SML/pos-boutique into master

Jose Miguel Ledon 7 gadi atpakaļ
vecāks
revīzija
a8c0c326b6
1 mainītis faili ar 7 papildinājumiem un 8 dzēšanām
  1. 7 8
      app/views/sales/_form.html.erb

+ 7 - 8
app/views/sales/_form.html.erb

@@ -324,15 +324,14 @@
 				}
 			}
 		});
+	});
 
-		$('#typeahead').codeScanner({
-			maxEntryTime: 100, // milliseconds
-			minEntryChars: 7,  // characters
-			onScan: function ($element, code) {
-				findProductByBarcode(code);
-			}
-		});
-
+	$('#sale_form #typeahead').codeScanner({
+		maxEntryTime: 200, // milliseconds
+		minEntryChars: 7,  // characters
+		onScan: function ($element, code) {
+			findProductByBarcode(code);
+		}
 	});
 
 	$('#sale_customer_id').on('change', function() {