Commit 9dccb9da authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1856759: gridstack: change js code not supported in IE11

Gridstack not initialising: the process of translating a page
from old layout into gristack was interrupted by js errors

behatnotneeded

Change-Id: I16a54bc2442d94b5d4c47c7dc1c5a8a0e50c2716
parent 44b91057
......@@ -184,7 +184,7 @@ function updateTranslatedGridRows(blocks) {
else {
height[block.row][block.column] += realheight;
}
maxheight[block.row] = Math.max(...height[block.row]);
maxheight[block.row] = Math.max.apply(null, height[block.row]);
});
// update all blocks together
moveBlocks(updatedGrid);
......@@ -214,7 +214,7 @@ function updateBlockSizes(grid) {
});
}
function addNewWidget(blockContent, blockId, dimensions, grid, blocktypeclass, minWidth=null, minHeight=null) {
function addNewWidget(blockContent, blockId, dimensions, grid, blocktypeclass, minWidth, minHeight) {
el = grid.addWidget(
blockContent,
dimensions.positionx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment