From 56e6a8e7a3ac07cfef55dd102b9db8e5337a7688 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Thu, 20 May 2021 14:51:17 -0700 Subject: [PATCH] LP#1929136: delay barcode lookup on change in holdings editor In the Holdings Editor, any change to the barcode field results in an immediate API call. Thus, if you type the barcode "123456789", you would get 9 separate calls: 1, 12, 123, 1234, 12345 ... This commit adds a 1000ms delay to avoid excessive pcrud calls when typing a barcode. Signed-off-by: Jeff Davis Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 57848b4536..ac6a7b8098 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -524,7 +524,7 @@ function(egCore , $q) { '
'+ ''+ '
{{duplicate_barcode_string}}
'+ '
{{empty_barcode_string}}
'+ -- 2.11.0