LP#1929136: (follow-up) reduce bounce time to 500ms
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 4 Jun 2021 20:17:33 +0000 (16:17 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 7 Jul 2021 14:27:34 +0000 (10:27 -0400)
During testing, 500ms was enough to avoid excessive
PCRUD calls while still keeping the interface's display
of duplicate or missing barcode warnings responsive.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index ac6a7b8..3a479b7 100644 (file)
@@ -524,7 +524,7 @@ function(egCore , $q) {
                 '<div class="col-xs-5" ng-class="{'+"'has-error'"+':barcode_has_error}">'+
                     '<input id="{{callNumber.id()}}_{{copy.id()}}"'+
                     ' eg-enter="nextBarcode(copy.id())" class="form-control"'+
-                    ' type="text" ng-model="barcode" ng-model-options="{ debounce: 1000 }" ng-change="updateBarcode()"'+
+                    ' type="text" ng-model="barcode" ng-model-options="{ debounce: 500 }" ng-change="updateBarcode()"'+
                     ' ng-focus="selectOnFocus($event)" autofocus/>'+
                     '<div class="label label-danger" ng-if="duplicate_barcode">{{duplicate_barcode_string}}</div>'+
                     '<div class="label label-danger" ng-if="empty_barcode">{{empty_barcode_string}}</div>'+