From 90e34e77b780424750404fabf13ec069498dd4fb Mon Sep 17 00:00:00 2001 From: Mike Risher Date: Wed, 20 May 2020 23:27:20 +0000 Subject: [PATCH] LP#1819233 improve AngularJS eg-basic-combo-box filtering MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Adjust the eg-basic-combo-box so that it doesn’t give console errors when typing characters such as [. Fix the bug that causes it to sometimes show no results when there are valid results that match. To test ------- [1] Apply the patch, then create a new report template, add a display field, then open the Change Transform modal. [2] Verify that the selection box will accept characters like '[' as input without browser console noise, that the filtering is case-insensitive, and that filtering continues to work after clicking on the selector. [3] Instances of this combo box can also be found in the AngularJS volume/copy editor. Signed-off-by: Mike Risher Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/services/ui.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/ui.js b/Open-ILS/web/js/ui/default/staff/services/ui.js index c903811dea..e3b4f62396 100644 --- a/Open-ILS/web/js/ui/default/staff/services/ui.js +++ b/Open-ILS/web/js/ui/default/staff/services/ui.js @@ -937,7 +937,7 @@ function($uibModal , $interpolate , egCore) { }, template: '
'+ - ''+ + ''+ '
'+ ''+ '