submit unified search query on Enter when focused on value widget
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Aug 2010 22:16:01 +0000 (22:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Aug 2010 22:16:01 +0000 (22:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17274 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/search/unified.js

index 91f8190..4fffeae 100644 (file)
@@ -169,6 +169,13 @@ function TermSelectorFactory(terms) {
                             w.focus();
                         if (typeof(callback) == "function")
                             callback(term, widgetKey);
+
+                        // submit on enter
+                        openils.Util.registerEnterHandler(w.domNode,
+                            function() { 
+                                resultManager.go(termManager.buildSearchObject());
+                            }
+                        );
                     }
                 );
             }