X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.toc%2Ftoc.js;h=c1066f2c51ced1dc240ac256f6a1909fe1a765a5;hb=9502e76d1c681d07fd6f80f30eae2ed9ccdeb829;hp=e5745689ff11d327712ce971500f372f22a55b1e;hpb=3a026473873ac3cc9d5c181f05961f474495d32c;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.toc/toc.js b/resources/src/mediawiki.toc/toc.js index e5745689ff..c1066f2c51 100644 --- a/resources/src/mediawiki.toc/toc.js +++ b/resources/src/mediawiki.toc/toc.js @@ -13,7 +13,7 @@ // Hide/show the table of contents element function toggleToc() { - if ( $tocList.is( ':hidden' ) ) { + if ( $this.hasClass( 'tochidden' ) ) { // FIXME: Use CSS transitions // eslint-disable-next-line no-jquery/no-slide $tocList.slideDown( 'fast' );