[open-ils-commits] r17274 - trunk/Open-ILS/web/js/ui/default/acq/search (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 19 18:16:08 EDT 2010
Author: erickson
Date: 2010-08-19 18:16:01 -0400 (Thu, 19 Aug 2010)
New Revision: 17274
Modified:
trunk/Open-ILS/web/js/ui/default/acq/search/unified.js
Log:
submit unified search query on Enter when focused on value widget
Modified: trunk/Open-ILS/web/js/ui/default/acq/search/unified.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-08-19 22:16:01 UTC (rev 17273)
+++ trunk/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-08-19 22:16:01 UTC (rev 17274)
@@ -169,6 +169,13 @@
w.focus();
if (typeof(callback) == "function")
callback(term, widgetKey);
+
+ // submit on enter
+ openils.Util.registerEnterHandler(w.domNode,
+ function() {
+ resultManager.go(termManager.buildSearchObject());
+ }
+ );
}
);
}
More information about the open-ils-commits
mailing list