mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-15 03:43:55 +00:00
Merge "Fix display of categories with numeric names"
This commit is contained in:
commit
472a4f8f92
|
@ -141,7 +141,7 @@
|
|||
|
||||
// Element may not have a .CategoryTreeTag parent, fallback to defauls
|
||||
// Probably a CategoryPage (@todo: based on what?)
|
||||
ctTitle = $link.data( 'ct-title' );
|
||||
ctTitle = $link.attr( 'data-ct-title' );
|
||||
ctMode = $linkParentCTTag.data( 'ct-mode' );
|
||||
ctMode = typeof ctMode === 'number' ? ctMode : undefined;
|
||||
ctOptions = $linkParentCTTag.attr( 'data-ct-options' );
|
||||
|
@ -151,7 +151,7 @@
|
|||
|
||||
// Mode and options have defaults or fallbacks, title does not.
|
||||
// Don't make a request if there is no title.
|
||||
if ( typeof ctTitle !== 'string' ) {
|
||||
if ( !ctTitle ) {
|
||||
error();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue