Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173542

Change subject: Hygiene: Change categoryButton to be hyphenated
......................................................................

Hygiene: Change categoryButton to be hyphenated

Bug: 73339
Change-Id: I90f83c0c27acecb153971181c079a6afec49149f
---
M includes/skins/MinervaTemplateAlpha.php
M javascripts/modules/categories/init.js
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/42/173542/1

diff --git a/includes/skins/MinervaTemplateAlpha.php 
b/includes/skins/MinervaTemplateAlpha.php
index c09477b..7cc2347 100644
--- a/includes/skins/MinervaTemplateAlpha.php
+++ b/includes/skins/MinervaTemplateAlpha.php
@@ -49,7 +49,7 @@
                                'url' => '#/categories',
                                // add hidden class (the overlay works only, 
when JS is enabled (class will
                                // be removed in categories/init.js)
-                               'class' => 'categoryButton hidden',
+                               'class' => 'category-button hidden',
                                'label' => wfMessage( 'categories' )->text()
                        );
                }
diff --git a/javascripts/modules/categories/init.js 
b/javascripts/modules/categories/init.js
index 78556a6..1917376 100644
--- a/javascripts/modules/categories/init.js
+++ b/javascripts/modules/categories/init.js
@@ -19,7 +19,7 @@
         * Enable the categories button
         */
        function initButton() {
-               $( '.categoryButton' ).removeClass( 'hidden' );
+               $( '.category-button' ).removeClass( 'hidden' );
        }
 
        $( initButton );

-- 
To view, visit https://gerrit.wikimedia.org/r/173542
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I90f83c0c27acecb153971181c079a6afec49149f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to