Skip to content
Snippets Groups Projects
Commit 21e5560d authored by Vincent Schippefilt's avatar Vincent Schippefilt
Browse files

[FIX] web: pivot view crash when they are gigantic


replace jquery selectors by native selector to avoid crash by sizzles

@task-id 2227350 and 2229571

closes odoo/odoo#50591

Signed-off-by: default avatarGéry Debongnie (ged) <ged@openerp.com>
parent ba5959bc
Branches
Tags
No related merge requests found
......@@ -128,7 +128,7 @@ var PivotRenderer = AbstractRenderer.extend({
className = 'o_pivot_header_cell' + (cell.isLeaf ? '_closed' : '_opened');
}
cellParams.class = className;
$tr.append($('<th>', cellParams));
});
$thead.append($tr);
......@@ -259,7 +259,10 @@ var PivotRenderer = AbstractRenderer.extend({
if ($(ev.currentTarget).is('th')) { // header cell
index += 1; // increment by 1 to compensate the top left empty cell
}
this.$("td").filter(":nth-child(" + (index + 1) + ")").addClass("o_cell_hover");
var tds = this.el.querySelectorAll("td:nth-child(" + (index + 1) + ")");
for (var td of tds) {
td.classList.add("o_cell_hover");
}
},
/**
* @private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment