From: erickson Date: Wed, 9 Sep 2009 13:16:52 +0000 (+0000) Subject: prevent negative paging display offset. added paginator to event def grids X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5337b743c15c726eac8ce58be509438745c3c134;p=evergreen%2Fbjwebb.git prevent negative paging display offset. added paginator to event def grids git-svn-id: svn://svn.open-ils.org/ILS/trunk@13985 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index eabe8aef3..e51d6215e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -85,6 +85,8 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { 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 diff --git a/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2 b/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2 index 55da5c272..3e33eb573 100644 --- a/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2 +++ b/Open-ILS/web/templates/default/conify/global/action_trigger/event_definition.tt2 @@ -24,6 +24,7 @@ fmClass='atevdef' defaultCellWidth='"auto"' editStyle='pane' + showPaginator='true' editOnEnter='true'> @@ -48,6 +49,7 @@ query="{key: '*'}" fmClass='ath' defaultCellWidth='20' + showPaginator='true' editOnEnter='true'> @@ -66,6 +68,7 @@ dojoType="openils.widget.AutoGrid" query="{module: '*'}" fmClass='atreact' + showPaginator='true' editOnEnter='true'> @@ -90,6 +93,7 @@ dojoType="openils.widget.AutoGrid" query="{module: '*'}" fmClass='atval' + showPaginator='true' editOnEnter='true'>