dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TOC: Avoid Sizzle selectors
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.toc
/
toc.js
diff --git
a/resources/src/mediawiki.toc/toc.js
b/resources/src/mediawiki.toc/toc.js
index
e574568
..
c1066f2
100644
(file)
--- 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 ( $t
ocList.is( ':
hidden' ) ) {
+ if ( $t
his.hasClass( 'toc
hidden' ) ) {
// FIXME: Use CSS transitions
// eslint-disable-next-line no-jquery/no-slide
$tocList.slideDown( 'fast' );