[open-ils-commits] r13986 - in branches/rel_1_6/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:17:13 EDT 2009
Author: erickson
Date: 2009-09-09 09:17:11 -0400 (Wed, 09 Sep 2009)
New Revision: 13986
Modified:
branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
branches/rel_1_6/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: branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-09-09 13:16:52 UTC (rev 13985)
+++ branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-09-09 13:17:11 UTC (rev 13986)
@@ -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: branches/rel_1_6/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2
===================================================================
--- branches/rel_1_6/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2 2009-09-09 13:16:52 UTC (rev 13985)
+++ branches/rel_1_6/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2 2009-09-09 13:17:11 UTC (rev 13986)
@@ -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