[IMP] Hide page if only one page

bzr revid: fme@openerp.com-20120503135520-9csae6omgdv1febr
This commit is contained in:
Fabien Meghazi 2012-05-03 15:55:20 +02:00
parent ff3eb28fe3
commit 0b773eead3
1 changed files with 2 additions and 3 deletions

View File

@ -360,6 +360,8 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
this.$pager.find('.oe-pager-state').text(isNaN(total)
? '-' : _.str.sprintf('%d / %d', page, total));
this.$pager.toggle(total > 1);
},
/**
* Sets up the listview's columns: merges view and fields data, move
@ -463,9 +465,6 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
if (this.$buttons) {
this.$buttons.show();
}
if (this.$pager) {
this.$pager.show();
}
},
do_hide: function () {
if (this.sidebar) {