[FIX]Re-fixed the issue of pager on group by view, last element of the row removes total value.
bzr revid: msh@openerp.com-20131106134929-zn3x03sksy4nruns
This commit is contained in:
commit
ed7ee33cf7
|
@ -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();
|
||||
},
|
||||
/**
|
||||
|
@ -1456,7 +1457,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