[CHG] Added dummy cell to kanban view

bzr revid: fme@openerp.com-20120711152651-iaojxuurbxzgjevz
This commit is contained in:
Fabien Meghazi 2012-07-11 17:26:51 +02:00
parent 86853063f9
commit 510fe019ca
2 changed files with 4 additions and 3 deletions

View File

@ -219,7 +219,6 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
group.destroy();
});
this.groups = [];
this.$element.find('.oe_kanban_groups_headers, .oe_kanban_groups_records').empty();
},
do_add_groups: function(groups) {
var self = this;
@ -227,7 +226,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
self.groups[group.undefined_title ? 'unshift' : 'push'](group);
});
var groups_started = _.map(this.groups, function(group) {
return group.appendTo(self.$element.find('.oe_kanban_groups_headers'));
return group.insertBefore(self.$element.find('.oe_kanban_groups_headers td:last'));
});
return $.when.apply(null, groups_started).then(function () {
self.on_groups_started();
@ -394,7 +393,7 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({
self.quick.replace($(".oe_kanban_no_group_qc_placeholder"));
}
this.$records = $(QWeb.render('KanbanView.group_records_container', { widget : this}));
this.$records.appendTo(this.view.$element.find('.oe_kanban_groups_records'));
this.$records.insertBefore(this.view.$element.find('.oe_kanban_groups_records td:last'));
this.$element.find(".oe_kanban_fold_icon").click(function() {
self.do_toggle_fold();
self.view.compute_groups_width();

View File

@ -4,8 +4,10 @@
<div class="oe_kanban_buttons"/>
<table class="oe_kanban_groups">
<tr class="oe_kanban_groups_headers">
<td class="oe_kanban_dummy_cell"/>
</tr>
<tr class="oe_kanban_groups_records">
<td class="oe_kanban_dummy_cell"/>
</tr>
</table>
</div>