[REV] Revert last commit

bzr revid: fme@openerp.com-20120711163223-zeqr498v3oxvmryd
This commit is contained in:
Fabien Meghazi 2012-07-11 18:32:23 +02:00
parent 4358a24561
commit d2e77a5de1
2 changed files with 3 additions and 4 deletions

View File

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

View File

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