557
edits
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
| Line 779: | Line 779: | ||
} | } | ||
}); | }); | ||
// Initialize table sorting on page load | |||
$(document).ready(function() { | |||
initMobileSorting(); | |||
// Also reinitialize when new content loads | |||
mw.hook('wikipage.content').add(function() { | |||
initMobileSorting(); | |||
}); | |||
}); | |||
}); | }); | ||