mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Merge "Make category links arrow link to actual categories"
This commit is contained in:
commit
5ba10fcef7
|
@ -372,6 +372,7 @@ class CategoryTree {
|
||||||
// href and role will be added client-side
|
// href and role will be added client-side
|
||||||
'class' => 'CategoryTreeToggle',
|
'class' => 'CategoryTreeToggle',
|
||||||
'data-ct-title' => $key,
|
'data-ct-title' => $key,
|
||||||
|
'href' => $title->getLocalURL(),
|
||||||
];
|
];
|
||||||
|
|
||||||
if ( $children === 0 ) {
|
if ( $children === 0 ) {
|
||||||
|
|
|
@ -90,7 +90,6 @@
|
||||||
$content.find( '.CategoryTreeToggle' )
|
$content.find( '.CategoryTreeToggle' )
|
||||||
.on( 'click', handleNode )
|
.on( 'click', handleNode )
|
||||||
.attr( {
|
.attr( {
|
||||||
href: '#',
|
|
||||||
role: 'button',
|
role: 'button',
|
||||||
title: function () {
|
title: function () {
|
||||||
return mw.msg(
|
return mw.msg(
|
||||||
|
|
Loading…
Reference in a new issue