From 340dae9fe668abc70c0aacaa290b2d87008f2f3c 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 8c633e1644..edce285d48 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -333,12 +333,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