From 20f80d2e008cf99f8fce374161bcafbf4f1f955c Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Sat, 4 Jun 2016 08:37:37 -0400 Subject: [PATCH] Revert "LP#1528647 Self-check only accepts user name value if regex" Terran reports this not working as expected. This reverts commit 0eb3a73c2fba4f609c0dab015a843a550e03516e. --- Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js index 0b52b92e31..b8d0bc447d 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -332,12 +332,8 @@ SelfCheckManager.prototype.loadOrgSettings = function() { this.orgSettings[k] = settings[k].value; } - if(settings[SET_BARCODE_REGEX]) { - this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value) - } else { - this.patronBarcodeRegex = newRegExp(/^\d/); - // this assumes barcodes start with digits - } + if(settings[SET_BARCODE_REGEX]) + this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value); // Subtract the timeout warning interval from the configured timeout // so that when taken together they add up to the configured amount. -- 2.11.0