[FIX] in-group pagination of list views
bzr revid: xmo@openerp.com-20121017115845-9ch6icjjhrzycj84
This commit is contained in:
parent
5d5a8e85c2
commit
fa1aafa97d
|
@ -25,7 +25,6 @@
|
|||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.openerp.openerp_webclient_container {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
|
@ -2592,6 +2591,9 @@
|
|||
min-width: 0 !important;
|
||||
max-width: none !important;
|
||||
}
|
||||
.openerp .oe_list_group_name {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.openerp .oe_form .oe_form_field_many2many > .oe_list .oe_list_pager_single_page {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -2049,6 +2049,8 @@ $sheet-max-width: 860px
|
|||
.oe_form_field_float,.oe_form_view_integer,&.oe_form_field_datetime,&.oe_form_field_date
|
||||
min-width: 0 !important
|
||||
max-width: none !important
|
||||
.oe_list_group_name
|
||||
white-space: nowrap
|
||||
// }}}
|
||||
// FormView.many2many {{{
|
||||
.oe_form .oe_form_field_many2many > .oe_list
|
||||
|
|
|
@ -1230,6 +1230,7 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
|
|||
.replaceWith(self.render());
|
||||
});
|
||||
this.$row.children().last()
|
||||
.addClass('oe_list_group_pagination')
|
||||
.append($prev)
|
||||
.append('<span class="oe_list_pager_state"></span>')
|
||||
.append($next);
|
||||
|
@ -1414,10 +1415,12 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
|
|||
}))
|
||||
.end()
|
||||
.find('button[data-pager-action=previous]')
|
||||
.attr('disabled', page === 0)
|
||||
.css('visibility',
|
||||
page === 0 ? 'hidden' : '')
|
||||
.end()
|
||||
.find('button[data-pager-action=next]')
|
||||
.attr('disabled', page === pages - 1);
|
||||
.css('visibility',
|
||||
page === pages - 1 ? 'hidden' : '');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue