Skip to content

Commit

Permalink
auto collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
lakejason0 committed Oct 4, 2022
1 parent 5aaa08a commit 8ceac64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/skin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Lakeus.portletOutsideClose = function (id) {
}
})
}
Lakeus.stickyTOCOutsideClose = function () {
Lakeus.stickyTOCAutoCollapse = function () {
$(document).on('click', function (event) {
var container = document.getElementById('lakeus-sticky-toc');
if (container) {
Expand All @@ -34,7 +34,7 @@ $(function () {
Lakeus.portletOutsideClose('p-lang');
Lakeus.portletOutsideClose('p-variants');
Lakeus.portletOutsideClose('p-tb');
Lakeus.stickyTOCOutsideClose();
Lakeus.stickyTOCAutoCollapse();
});
$.when(mw.loader.using(['user.options']), $.ready).then(function () {
Lakeus.isStickyTOCAutoCollapse = !mw.user.options.get('lakeus-sticky-toc-donot-auto-collapse');
Expand Down

0 comments on commit 8ceac64

Please sign in to comment.