[MERGE] [FIX] Grouped ListView: avoid removing info in row title (such as total) when removing page numbers (if grouped view contains more than 80 elements) (opw 594708)

bzr revid: mat@openerp.com-20131211113330-c6mnxwba7yvxaqmc
This commit is contained in:
Martin Trigaux 2013-12-11 12:33:30 +01:00
commit 585c72abd7
1 changed files with 4 additions and 2 deletions

View File

@ -1284,7 +1284,8 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
}
},
close: function () {
this.$row.children().last().empty();
this.$row.children().last().find('button').remove();
this.$row.children().last().find('span').remove();
this.records.reset();
},
/**
@ -1455,7 +1456,8 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
} else {
if (dataset.size() == records.length) {
// only one page
self.$row.find('td.oe_list_group_pagination').empty();
self.$row.find('td.oe_list_group_pagination').find('button').remove();
self.$row.find('td.oe_list_group_pagination').find('span').remove();
} else {
var pages = Math.ceil(dataset.size() / limit);
self.$row