[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:
Mohammed Shekha (OpenERP) 2013-11-06 19:19:29 +05:30
commit ed7ee33cf7
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();
},
/**
@ -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