LP#1929136: delay barcode lookup on change in holdings editor user/jeffdavis/lp1929136-holdings-editor-delay-barcode-lookup
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 20 May 2021 21:51:17 +0000 (14:51 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 20 May 2021 21:51:17 +0000 (14:51 -0700)
commitb2b89d534b022ac11e54a58edef45cbce2aabb98
treec929a5e174ce00ac9e2d1ad08d421dfceeb8e2b5
parentf28d970272c1c198c795bd848fd6df7b4c8f3d32
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 <jdavis@sitka.bclibraries.ca>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js