Scott Seago
2008-Jun-16 16:18 UTC
[Ovirt-devel] [PATCH] enable pager for add host/storage popups
Signed-off-by: Scott Seago <sseago at redhat.com> --- wui/src/app/views/host/_grid.rhtml | 4 ++-- wui/src/app/views/storage/_grid.rhtml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wui/src/app/views/host/_grid.rhtml b/wui/src/app/views/host/_grid.rhtml index 3b882d8..0d278fe 100644 --- a/wui/src/app/views/host/_grid.rhtml +++ b/wui/src/app/views/host/_grid.rhtml @@ -28,8 +28,8 @@ ], sortname: "hostname", sortorder: "asc", - usepager: <%= (!hwpool.nil? and hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, - useRp: <%= (!hwpool.nil? and hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, + usepager: <%= (hwpool.nil? or hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, + useRp: <%= (hwpool.nil? or hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, rp: <%= hosts_per_page %>, showTableToggleBtn: true, onSelect: <%= on_select %>, diff --git a/wui/src/app/views/storage/_grid.rhtml b/wui/src/app/views/storage/_grid.rhtml index 843d64d..0644473 100644 --- a/wui/src/app/views/storage/_grid.rhtml +++ b/wui/src/app/views/storage/_grid.rhtml @@ -20,8 +20,8 @@ ], sortname: "ip_addr", sortorder: "asc", - usepager: <%= (!hwpool.nil? and hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, - useRp: <%= (!hwpool.nil? and hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, + usepager: <%= (hwpool.nil? or hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, + useRp: <%= (hwpool.nil? or hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, rp: <%= storage_per_page %>, showTableToggleBtn: true, onSelect: <%= on_select %> -- 1.5.4.1
Hugh O. Brock
2008-Jun-16 18:09 UTC
[Ovirt-devel] [PATCH] enable pager for add host/storage popups
On Mon, Jun 16, 2008 at 12:18:41PM -0400, Scott Seago wrote:> > Signed-off-by: Scott Seago <sseago at redhat.com> > --- > wui/src/app/views/host/_grid.rhtml | 4 ++-- > wui/src/app/views/storage/_grid.rhtml | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/wui/src/app/views/host/_grid.rhtml b/wui/src/app/views/host/_grid.rhtml > index 3b882d8..0d278fe 100644 > --- a/wui/src/app/views/host/_grid.rhtml > +++ b/wui/src/app/views/host/_grid.rhtml > @@ -28,8 +28,8 @@ > ], > sortname: "hostname", > sortorder: "asc", > - usepager: <%= (!hwpool.nil? and hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, > - useRp: <%= (!hwpool.nil? and hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, > + usepager: <%= (hwpool.nil? or hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, > + useRp: <%= (hwpool.nil? or hwpool.hosts.size > hosts_per_page) ? 'true' : 'false' %>, > rp: <%= hosts_per_page %>, > showTableToggleBtn: true, > onSelect: <%= on_select %>, > diff --git a/wui/src/app/views/storage/_grid.rhtml b/wui/src/app/views/storage/_grid.rhtml > index 843d64d..0644473 100644 > --- a/wui/src/app/views/storage/_grid.rhtml > +++ b/wui/src/app/views/storage/_grid.rhtml > @@ -20,8 +20,8 @@ > ], > sortname: "ip_addr", > sortorder: "asc", > - usepager: <%= (!hwpool.nil? and hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, > - useRp: <%= (!hwpool.nil? and hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, > + usepager: <%= (hwpool.nil? or hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, > + useRp: <%= (hwpool.nil? or hwpool.storage_pools.size > storage_per_page) ? 'true' : 'false' %>, > rp: <%= storage_per_page %>, > showTableToggleBtn: true, > onSelect: <%= on_select %> > --ACK --H