Browse Source

Move table JS outside of scrolling

pull/4132/head
Rapptz 5 years ago
parent
commit
2eb9e3bc56
  1. 3
      docs/_static/custom.js

3
docs/_static/custom.js

@ -28,6 +28,8 @@ $(document).ready(function () {
activeLink.parent().addClass('active'); activeLink.parent().addClass('active');
} }
});
const tables = document.querySelectorAll('.py-attribute-table[data-move-to-id]'); const tables = document.querySelectorAll('.py-attribute-table[data-move-to-id]');
tables.forEach(table => { tables.forEach(table => {
let element = document.getElementById(table.getAttribute('data-move-to-id')); let element = document.getElementById(table.getAttribute('data-move-to-id'));
@ -36,4 +38,3 @@ $(document).ready(function () {
parent.insertBefore(table, element.nextSibling); parent.insertBefore(table, element.nextSibling);
}); });
}); });
});

Loading…
Cancel
Save