From f3461ff520a7fd1b396d773908d3b8aceceac556 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 19 Aug 2010 22:16:01 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/acq/search/unified.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 91f8190c1d..4fffeae9e3 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()); + } + ); } ); } -- 2.11.0