[open-ils-commits] r17830 - in branches/rel_2_0/Open-ILS/web: js/ui/default/acq/common templates/default/acq/common templates/default/acq/search (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 20 01:05:46 EDT 2010


Author: senator
Date: 2010-09-20 01:05:43 -0400 (Mon, 20 Sep 2010)
New Revision: 17830

Modified:
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js
   branches/rel_2_0/Open-ILS/web/templates/default/acq/common/li_table.tt2
   branches/rel_2_0/Open-ILS/web/templates/default/acq/search/unified.tt2
Log:
Backport r17829 from trunk: actions menu to ordinary select in li table


Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-09-20 05:05:00 UTC (rev 17829)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-09-20 05:05:43 UTC (rev 17830)
@@ -75,11 +75,10 @@
         }
     );
 
-    dojo.connect(acqLitLiActionsSelector, 'onChange', 
-        function() { 
-            self.applySelectedLiAction(this.attr('value')) 
-            acqLitLiActionsSelector.attr('value', '_');
-        });
+    dojo.byId("acq-lit-li-actions-selector").onchange = function() { 
+        self.applySelectedLiAction(this.options[this.selectedIndex].value);
+        this.selectedIndex = 0;
+    };
 
     acqLitCreatePoSubmit.onClick = function() {
         if (self._confirmPoPrepaySituation()) {

Modified: branches/rel_2_0/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- branches/rel_2_0/Open-ILS/web/templates/default/acq/common/li_table.tt2	2010-09-20 05:05:00 UTC (rev 17829)
+++ branches/rel_2_0/Open-ILS/web/templates/default/acq/common/li_table.tt2	2010-09-20 05:05:43 UTC (rev 17830)
@@ -13,7 +13,7 @@
                             <tr>
                                 <td>
                                     <span>
-                                        <select dojoType='dijit.form.FilteringSelect' value='_' jsId='acqLitLiActionsSelector'>
+                                        <select id="acq-lit-li-actions-selector">
                                             <option mask='*'  value='_'>--Actions--</option>
                                             <option mask='sr' value='save_picklist'>Save Items To Selection List</option>
                                             <option mask='pl' value='selector_ready'>Mark Ready for Selector</option>

Modified: branches/rel_2_0/Open-ILS/web/templates/default/acq/search/unified.tt2
===================================================================
--- branches/rel_2_0/Open-ILS/web/templates/default/acq/search/unified.tt2	2010-09-20 05:05:00 UTC (rev 17829)
+++ branches/rel_2_0/Open-ILS/web/templates/default/acq/search/unified.tt2	2010-09-20 05:05:43 UTC (rev 17830)
@@ -89,6 +89,11 @@
         </div>
     </div>
     <div id="acq-unified-results-purchase_order" class="hidden">
+        <div class="acq-unified-result-specific-controls">
+            <button onclick="dijit.byId('acq-unified-po-grid').refresh();">
+                Refresh Grid
+            </button>
+        </div>
         <table
             id="acq-unified-po-grid"
             autoHeight="true"
@@ -111,6 +116,10 @@
     </div>
     <div id="acq-unified-results-picklist" class="hidden">
         <div class="acq-unified-result-specific-controls">
+            <button dojoType="dijit.form.Button"
+                onClick="dijit.byId('acq-unified-pl-grid').refresh();">
+                Refresh Grid
+            </button>
             <div dojoType="dijit.form.DropDownButton">
                 <span>New Selection List</span>
                 <div dojoType="dijit.TooltipDialog"



More information about the open-ils-commits mailing list