From: erickson Date: Thu, 19 Aug 2010 22:16:01 +0000 (+0000) Subject: submit unified search query on Enter when focused on value widget X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f3461ff520a7fd1b396d773908d3b8aceceac556;p=evergreen%2Fbjwebb.git submit unified search query on Enter when focused on value widget git-svn-id: svn://svn.open-ils.org/ILS/trunk@17274 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/acq/search/unified.js b/Open-ILS/web/js/ui/default/acq/search/unified.js index 91f8190c1..4fffeae9e 100644 --- a/Open-ILS/web/js/ui/default/acq/search/unified.js +++ b/Open-ILS/web/js/ui/default/acq/search/unified.js @@ -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()); + } + ); } ); }