From 3f38eb6cd15bb6c2d1b21eaa397adb5209124b5f Mon Sep 17 00:00:00 2001 From: Fomafix Date: Tue, 31 Aug 2021 22:16:32 +0000 Subject: [PATCH] Use .css() instead of .show() and .hide() jQuery's .show() and .hide() make some actions which are not needed here. Change-Id: I606430fa1922841f9974d7334f646fcedbf03173 --- modules/ext.categoryTree/ext.categoryTree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.categoryTree/ext.categoryTree.js b/modules/ext.categoryTree/ext.categoryTree.js index 5cc215c3..e4bac464 100644 --- a/modules/ext.categoryTree/ext.categoryTree.js +++ b/modules/ext.categoryTree/ext.categoryTree.js @@ -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' ),