[open-ils-commits] r9680 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb:
public/oils/media/ui_js/oils/default/acq/po
templates/oils/default/acq/po
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 22 17:53:56 EDT 2008
Author: erickson
Date: 2008-05-22 17:53:52 -0400 (Thu, 22 May 2008)
New Revision: 9680
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html
Log:
only display the create-po button when searching for approved items
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js 2008-05-22 21:52:05 UTC (rev 9679)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js 2008-05-22 21:53:52 UTC (rev 9680)
@@ -40,6 +40,11 @@
search[v] = val;
}
+ if(values.state == 'approved')
+ dojo.style('oils-acq-li-search-po-create', 'visibility', 'visible');
+ else
+ dojo.style('oils-acq-li-search-po-create', 'visibility', 'hidden');
+
//search = [search, {limit:searchLimit, offset:searchOffset}];
search = [search, {}];
options = {clear_marc:1, flesh_attrs:1};
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html 2008-05-22 21:52:05 UTC (rev 9679)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html 2008-05-22 21:53:52 UTC (rev 9680)
@@ -35,7 +35,7 @@
</div>
<script>dojo.style('searchProgress', 'visibility', 'hidden');</script>
- <div dojoType="dijit.form.DropDownButton">
+ <div dojoType="dijit.form.DropDownButton" id='oils-acq-li-search-po-create'>
<span>${('Create PO')}</span>
<div dojoType="dijit.TooltipDialog" execute="createPOFromLineitems(arguments[0]);">
<script type='dojo/connect' event='onOpen'>
@@ -81,6 +81,7 @@
</table>
</div>
</div>
+ <script>dojo.style('oils-acq-li-search-po-create', 'visibility', 'hidden');</script>
<div id='oils-acq-li-search-result-grid' style='height:100%'>
${jubgrid.jubgrid('oils-acq-li-search', 'liGrid')}
</div>
More information about the open-ils-commits
mailing list