[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:
commit
585c72abd7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue