[open-ils-commits] r13985 - in trunk/Open-ILS/web: js/dojo/openils/widget templates/default/conify/global/action_trigger (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 9 09:16:54 EDT 2009


Author: erickson
Date: 2009-09-09 09:16:52 -0400 (Wed, 09 Sep 2009)
New Revision: 13985

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
   trunk/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2
Log:
prevent negative paging display offset.  added paginator to event def grids

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js	2009-09-08 18:13:24 UTC (rev 13984)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js	2009-09-09 13:16:52 UTC (rev 13985)
@@ -85,6 +85,8 @@
                         onclick : function() { 
                             self.resetStore();
                             self.cachedQueryOpts.offset = self.displayOffset -= self.displayLimit;
+                            if(self.displayOffset < 0)
+                                self.cachedQueryOpts.offset = self.displayOffset = 0;
                             if(self.dataLoader)
                                 self.dataLoader()
                             else

Modified: trunk/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2	2009-09-08 18:13:24 UTC (rev 13984)
+++ trunk/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2	2009-09-09 13:16:52 UTC (rev 13985)
@@ -24,6 +24,7 @@
                     fmClass='atevdef'
                     defaultCellWidth='"auto"'
                     editStyle='pane'
+                    showPaginator='true'
                     editOnEnter='true'>
                 <thead>
                     <tr><th field='name' get='getEventDefNameLink' formatter='formatEventDefNameLink'/></tr>
@@ -48,6 +49,7 @@
                     query="{key: '*'}" 
                     fmClass='ath'
                     defaultCellWidth='20'
+                    showPaginator='true'
                     editOnEnter='true'>
             </table>
         </div>
@@ -66,6 +68,7 @@
                     dojoType="openils.widget.AutoGrid" 
                     query="{module: '*'}" 
                     fmClass='atreact'
+                    showPaginator='true'
                     editOnEnter='true'>
                 <thead>
                     <tr>
@@ -90,6 +93,7 @@
                     dojoType="openils.widget.AutoGrid" 
                     query="{module: '*'}" 
                     fmClass='atval'
+                    showPaginator='true'
                     editOnEnter='true'>
                 <thead>
                     <tr>



More information about the open-ils-commits mailing list