mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Use .css() instead of .show() and .hide()
jQuery's .show() and .hide() make some actions which are not needed here. Change-Id: I606430fa1922841f9974d7334f646fcedbf03173
This commit is contained in:
parent
6c36a1a3d7
commit
3f38eb6cd1
|
@ -35,7 +35,7 @@
|
||||||
// Show the children node
|
// Show the children node
|
||||||
var $children = $link.parents( '.CategoryTreeItem' )
|
var $children = $link.parents( '.CategoryTreeItem' )
|
||||||
.siblings( '.CategoryTreeChildren' )
|
.siblings( '.CategoryTreeChildren' )
|
||||||
.show();
|
.css( 'display', '' );
|
||||||
|
|
||||||
$link.attr( {
|
$link.attr( {
|
||||||
title: mw.msg( 'categorytree-collapse' ),
|
title: mw.msg( 'categorytree-collapse' ),
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
// Hide the children node
|
// Hide the children node
|
||||||
$link.parents( '.CategoryTreeItem' )
|
$link.parents( '.CategoryTreeItem' )
|
||||||
.siblings( '.CategoryTreeChildren' )
|
.siblings( '.CategoryTreeChildren' )
|
||||||
.hide();
|
.css( 'display', 'none' );
|
||||||
|
|
||||||
$link.attr( {
|
$link.attr( {
|
||||||
title: mw.msg( 'categorytree-expand' ),
|
title: mw.msg( 'categorytree-expand' ),
|
||||||
|
|
Loading…
Reference in a new issue