Re-init Sorttable on turbolinks page load
This commit is contained in:
@ -64,4 +64,10 @@ $(document).on('turbolinks:load', function() {
|
|||||||
|
|
||||||
// Enable all tooltips
|
// Enable all tooltips
|
||||||
$('[data-bs-toggle="tooltip"]').tooltip();
|
$('[data-bs-toggle="tooltip"]').tooltip();
|
||||||
|
|
||||||
|
// Enable sorttable again, as it is disabled otherwise by Turbolinks
|
||||||
|
if (sorttable) {
|
||||||
|
sorttable.init.done = false;
|
||||||
|
sorttable.init();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user