[IMP] web: do not fully hide pager in grouped view

When the list view is grouped, the page count should be hidden as irrelevant.
However if it's fully hidden, the limit can no longer be changed.
Instead of hidding the pager, this commit hides the arrows and replaces
the content by the current limit to allow to be changed.
This commit is contained in:
Martin Trigaux 2014-12-03 14:57:56 +01:00
parent bc2a52fb28
commit a765876ffb
1 changed files with 3 additions and 1 deletions

View File

@ -1578,7 +1578,9 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
.filter(function (column) { return column.tag === 'field' })
.pluck('name').value(),
function (groups) {
self.view.$pager.hide();
// page count is irrelevant on grouped page, replace by limit
self.view.$pager.find('.oe_pager_group').hide();
self.view.$pager.find('.oe_list_pager_state').text(self.view._limit ? self.view._limit : '∞');
$el[0].appendChild(
self.render_groups(groups));
if (post_render) { post_render(); }