Index: trunk/extensions/WikiLove/WikiLove.php |
— | — | @@ -105,6 +105,7 @@ |
106 | 106 | ), |
107 | 107 | 'styles' => 'ext.wikiLove.css', |
108 | 108 | 'messages' => array( |
| 109 | + 'wikilove-tab-text', |
109 | 110 | 'wikilove-dialog-title', |
110 | 111 | 'wikilove-select-type', |
111 | 112 | 'wikilove-get-started-header', |
Index: trunk/extensions/WikiLove/WikiLove.hooks.php |
— | — | @@ -112,6 +112,8 @@ |
113 | 113 | */ |
114 | 114 | private static function skinConfigViewsLinks( $skin, &$views ) { |
115 | 115 | global $wgWikiLoveGlobal, $wgUser; |
| 116 | + |
| 117 | + // If WikiLove is turned off for this user, don't display tab. |
116 | 118 | if ( !$wgWikiLoveGlobal && !$wgUser->getOption( 'wikilove-enabled' ) ) { |
117 | 119 | return true; |
118 | 120 | } |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -770,8 +770,12 @@ |
771 | 771 | */ |
772 | 772 | init: function() { |
773 | 773 | options = $.wikiLoveOptions; |
774 | | - |
775 | | - var $wikiLoveLink = $( '#ca-wikilove' ).find( 'a' ); |
| 774 | + |
| 775 | + if ( mw.config.get( 'skin' ) == 'standard' ) { |
| 776 | + var $wikiLoveLink = $( '#topbar a:contains(' + mw.msg( 'wikilove-tab-text' ) + ')' ); |
| 777 | + } else { |
| 778 | + var $wikiLoveLink = $( '#ca-wikilove' ).find( 'a' ); |
| 779 | + } |
776 | 780 | $wikiLoveLink.unbind( 'click' ); |
777 | 781 | $wikiLoveLink.click( function( e ) { |
778 | 782 | e.preventDefault(); |