From 8c4de3c823acb710a1337650d3aa4019d01550a6 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Fri, 14 Sep 2012 17:40:32 +0200 Subject: [PATCH] [FIX] tbody list trails in body bzr revid: al@openerp.com-20120914154032-akax8tuyflb03vmy --- addons/web/static/src/js/view_list.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 015cd1636f1..8cdbcb5a9ff 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -919,8 +919,7 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web. this.records.bind(event, callback); }, this); - this.$_element = $('') - .appendTo(document.body) + this.$current = $('') .delegate('th.oe_list_record_selector', 'click', function (e) { e.stopPropagation(); var selection = self.get_selection(); @@ -1011,11 +1010,6 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web. }); }, render: function () { - var self = this; - if (this.$current) { - this.$current.remove(); - } - this.$current = this.$_element.clone(true); this.$current.empty().append( QWeb.render('ListView.rows', _.extend({ render_cell: function () { @@ -1091,7 +1085,6 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web. if (!this.$current) { return; } this.$current.remove(); this.$current = null; - this.$_element.remove(); }, get_records: function () { return this.records.map(function (record) {