Fix
This commit is contained in:
parent
bb55884003
commit
a201fc88a5
@ -7,7 +7,7 @@
|
||||
$(".scanbarcodebtn").click(function () {
|
||||
scanBarcode(function (code) {
|
||||
playSound("scan");
|
||||
if (code != "" && (code.match(/^([^\\t]*\\t[^\\t]*){13}$/) || code.match(/.*\\x1D.*/))) {
|
||||
if (code != "") {
|
||||
addPackageByBarcode(code, $("input[name=itemtype]:checked").val(),
|
||||
function (ids) {
|
||||
var packageObj = getPackage(ids.packageID);
|
||||
@ -26,7 +26,7 @@ $(".scanbarcodebtn").click(function () {
|
||||
$("#tap-to-remove-history-prompt").removeClass("display-none");
|
||||
});
|
||||
} else {
|
||||
app.dialog.alert("That barcode doesn't contain the required data.", "Error");
|
||||
app.dialog.alert("Invalid barcode.", "Error");
|
||||
}
|
||||
}, function (error) {
|
||||
app.dialog.alert(error, "Error");
|
||||
|
Loading…
x
Reference in New Issue
Block a user