[FIX] tbody list trails in body
bzr revid: al@openerp.com-20120914154032-akax8tuyflb03vmy
This commit is contained in:
parent
8a6b7b7ed4
commit
8c4de3c823
|
@ -919,8 +919,7 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
|
||||||
this.records.bind(event, callback);
|
this.records.bind(event, callback);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.$_element = $('<tbody>')
|
this.$current = $('<tbody>')
|
||||||
.appendTo(document.body)
|
|
||||||
.delegate('th.oe_list_record_selector', 'click', function (e) {
|
.delegate('th.oe_list_record_selector', 'click', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var selection = self.get_selection();
|
var selection = self.get_selection();
|
||||||
|
@ -1011,11 +1010,6 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
var self = this;
|
|
||||||
if (this.$current) {
|
|
||||||
this.$current.remove();
|
|
||||||
}
|
|
||||||
this.$current = this.$_element.clone(true);
|
|
||||||
this.$current.empty().append(
|
this.$current.empty().append(
|
||||||
QWeb.render('ListView.rows', _.extend({
|
QWeb.render('ListView.rows', _.extend({
|
||||||
render_cell: function () {
|
render_cell: function () {
|
||||||
|
@ -1091,7 +1085,6 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
|
||||||
if (!this.$current) { return; }
|
if (!this.$current) { return; }
|
||||||
this.$current.remove();
|
this.$current.remove();
|
||||||
this.$current = null;
|
this.$current = null;
|
||||||
this.$_element.remove();
|
|
||||||
},
|
},
|
||||||
get_records: function () {
|
get_records: function () {
|
||||||
return this.records.map(function (record) {
|
return this.records.map(function (record) {
|
||||||
|
|
Loading…
Reference in New Issue