diff --git a/includes/CategoryTreePage.php b/includes/CategoryTreePage.php index ac98b63b..b05c55b1 100644 --- a/includes/CategoryTreePage.php +++ b/includes/CategoryTreePage.php @@ -128,7 +128,11 @@ class CategoryTreePage extends SpecialPage { $output->addHTML( Xml::closeElement( 'div' ) ); - $output->addHTML( Xml::openElement( 'div', [ 'class' => 'CategoryTreeResult' ] ) ); + $output->addHTML( Xml::openElement( 'div', [ + 'class' => 'CategoryTreeResult CategoryTreeTag', + 'data-ct-mode' => $this->tree->getOption( 'mode' ), + 'data-ct-options' => $this->tree->getOptionsAsJsStructure(), + ] ) ); $output->addHTML( $this->tree->renderNode( $title, 1 ) ); $output->addHTML( Xml::closeElement( 'div' ) ); } else { diff --git a/modules/ext.categoryTree.styles.css b/modules/ext.categoryTree.styles.css index 43c9d2ac..e4d66862 100644 --- a/modules/ext.categoryTree.styles.css +++ b/modules/ext.categoryTree.styles.css @@ -161,15 +161,15 @@ font-style: italic; } -.CategoryTreeResult { - margin-top: 1.5ex; -} - .CategoryTreeTag { margin-top: 0.5ex; margin-bottom: 0.5ex; } +.CategoryTreeResult { + margin-top: 1.5ex; +} + .CategoryTreeNotice { font-style: italic; }