mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +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
|
||||
var $children = $link.parents( '.CategoryTreeItem' )
|
||||
.siblings( '.CategoryTreeChildren' )
|
||||
.show();
|
||||
.css( 'display', '' );
|
||||
|
||||
$link.attr( {
|
||||
title: mw.msg( 'categorytree-collapse' ),
|
||||
|
@ -56,7 +56,7 @@
|
|||
// Hide the children node
|
||||
$link.parents( '.CategoryTreeItem' )
|
||||
.siblings( '.CategoryTreeChildren' )
|
||||
.hide();
|
||||
.css( 'display', 'none' );
|
||||
|
||||
$link.attr( {
|
||||
title: mw.msg( 'categorytree-expand' ),
|
||||
|
|
Loading…
Reference in a new issue