[open-ils-commits] r17823 - trunk/Open-ILS/web/js/ui/default/acq/search (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Sep 19 20:55:18 EDT 2010
Author: senator
Date: 2010-09-19 20:55:16 -0400 (Sun, 19 Sep 2010)
New Revision: 17823
Modified:
trunk/Open-ILS/web/js/ui/default/acq/search/unified.js
Log:
Acq: make purchase order and invoice interfaces less annoying
They're really just canned acq searches, but now they don't automatically start
the search and hide the search terms, so you have a chance to adjust what
you're looking for
Modified: trunk/Open-ILS/web/js/ui/default/acq/search/unified.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-09-19 23:55:21 UTC (rev 17822)
+++ trunk/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-09-20 00:55:16 UTC (rev 17823)
@@ -808,6 +808,7 @@
{"state": "on-order"}
]
},
+ "half_search": true,
"result_type": "purchase_order",
"conjunction": "and",
"order_by": [
@@ -833,6 +834,7 @@
{"receiver": openils.User.user.ws_ou()}
]
},
+ "half_search": true,
"result_type": "invoice",
"conjunction": "and",
"order_by": [
@@ -876,10 +878,13 @@
uriManager = new URIManager();
if (uriManager.search_object) {
- hideForm();
+ if (!uriManager.half_search)
+ hideForm();
openils.Util.show("acq-unified-body");
termManager.reflect(uriManager.search_object);
- resultManager.search(uriManager, termManager);
+
+ if (!uriManager.half_search)
+ resultManager.search(uriManager, termManager);
} else {
termManager.addRow();
openils.Util.show("acq-unified-body");
More information about the open-ils-commits
mailing list