JBAS-1007 ACQ lib selector focus repair
authorBill Erickson <berickxx@gmail.com>
Fri, 15 Jan 2016 16:24:13 +0000 (11:24 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Allow text entry on lib selector focus by focusing the element with the
needed id (the input element) instead of the element with the needed
widgetid (the container element).

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/acq/common/li_table.js

index f6c651c..2f935b4 100644 (file)
@@ -2509,7 +2509,7 @@ function AcqLiTable() {
             // They are sequential, but don't necessarily start with _1, 
             // since rows can be arbitrarily removed.
             var selector = dojo.query(
-                '[widgetid^="openils_widget_FilteringTreeSelect_"]', row)[0];
+                '[id^="openils_widget_FilteringTreeSelect_"]', row)[0];
             if (selector) selector.focus();
         }, 100);
     }