Move table JS outside of scrolling
This commit is contained in:
parent
de9a3b5f60
commit
2eb9e3bc56
15
docs/_static/custom.js
vendored
15
docs/_static/custom.js
vendored
@ -28,12 +28,13 @@ $(document).ready(function () {
|
|||||||
activeLink.parent().addClass('active');
|
activeLink.parent().addClass('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
const tables = document.querySelectorAll('.py-attribute-table[data-move-to-id]');
|
});
|
||||||
tables.forEach(table => {
|
|
||||||
let element = document.getElementById(table.getAttribute('data-move-to-id'));
|
const tables = document.querySelectorAll('.py-attribute-table[data-move-to-id]');
|
||||||
let parent = element.parentNode;
|
tables.forEach(table => {
|
||||||
// insert ourselves after the element
|
let element = document.getElementById(table.getAttribute('data-move-to-id'));
|
||||||
parent.insertBefore(table, element.nextSibling);
|
let parent = element.parentNode;
|
||||||
});
|
// insert ourselves after the element
|
||||||
|
parent.insertBefore(table, element.nextSibling);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user