[open-ils-commits] r17824 - branches/rel_2_0/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:55 EDT 2010
Author: senator
Date: 2010-09-19 20:55:54 -0400 (Sun, 19 Sep 2010)
New Revision: 17824
Modified:
branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js
Log:
Backport r17823 from trunk: acq po and invoice interfaces
Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-09-20 00:55:16 UTC (rev 17823)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-09-20 00:55:54 UTC (rev 17824)
@@ -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