[FIX] pager: revert of revision 4159, the pager was disapearing when going in editable mode (which is more problematic that the issue rev 4159 was trying to fix)

bzr revid: mat@openerp.com-20140314132854-8ie8sosx9xecuww4
This commit is contained in:
Martin Trigaux
2014-03-14 14:28:54 +01:00
parent a9f98e4990
commit 53922c9593
+1 -3
View File
@@ -271,9 +271,6 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
if (this.$buttons) {
this.$buttons.show();
}
if (this.$pager) {
this.$pager.toggle(this.dataset.ids.length > 1);
}
this.$el.show().css({
opacity: '0',
filter: 'alpha(opacity = 0)'
@@ -423,6 +420,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
this.do_update_pager();
},
do_update_pager: function(hide_index) {
this.$pager.toggle(this.dataset.ids.length > 1);
if (hide_index) {
$(".oe_form_pager_state", this.$pager).html("");
} else {