From d28362fdbd17e8d382d1a6f0b03f1edc2ca02247 Mon Sep 17 00:00:00 2001
From: senator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Fri, 10 Sep 2010 22:24:44 +0000
Subject: [PATCH] Add "refresh grid" buttons to some consistently glitchy
 autogrids.

This is obviously not an ideal solution, but if the user sees these grids
and it's clear that not all the rows that should appear are rendering, they
at least have a button to click to deal with it.  There are probably other
places where this could be applied.



git-svn-id: svn://svn.open-ils.org/ILS/trunk@17599 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/web/templates/default/acq/financial/view_fund.tt2 | 1 +
 Open-ILS/web/templates/default/acq/search/unified.tt2      | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/web/templates/default/acq/financial/view_fund.tt2 b/Open-ILS/web/templates/default/acq/financial/view_fund.tt2
index 53f89399ff..9d6e5f1022 100644
--- a/Open-ILS/web/templates/default/acq/financial/view_fund.tt2
+++ b/Open-ILS/web/templates/default/acq/financial/view_fund.tt2
@@ -212,6 +212,7 @@
             <script type='dojo/connect' event='onShow'>loadDebitGrid();</script>
             
             <div dojoType="dijit.layout.ContentPane" layoutAlign="top" style='height:600px;'> 
+                <button dojoType="dijit.form.Button" onClick="fundDebitGrid.refresh();">Refresh Grid</button>
                 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
 
                     <table 
diff --git a/Open-ILS/web/templates/default/acq/search/unified.tt2 b/Open-ILS/web/templates/default/acq/search/unified.tt2
index 2befad99e4..1c2fd649fd 100644
--- a/Open-ILS/web/templates/default/acq/search/unified.tt2
+++ b/Open-ILS/web/templates/default/acq/search/unified.tt2
@@ -201,6 +201,9 @@
     </div>
     <div id="acq-unified-results-invoice" class="hidden">
         <div class="acq-unified-result-specific-controls">
+            <button onclick="dijit.byId('acq-unified-inv-grid').refresh();">
+                Refresh Grid
+            </button>
             <button onclick="printInvoiceVouchers();">
                 Print Selected Invoices
             </button>
@@ -217,7 +220,7 @@
             <thead>
                 <tr>
                     <th field="inv_ident" get="getInvIdent"
-                        formatter="formatInvIdent">Vendor Invoice ID</th>
+                        formatter="formatInvIdent"></th>
                 </tr>
             </thead>
         </table>
-- 
2.11.0