r90746 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90745‎ | r90746 | r90747 >
Date:01:41, 25 June 2011
Author:kaldari
Status:ok
Tags:
Comment:
button icons only supported by vector currently
Modified paths:
  • /trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
@@ -113,7 +113,11 @@
114114 resizable: false
115115 });
116116
117 - $( '#mw-wikilove-button-preview' ).button( { label: mw.msg( 'wikilove-button-preview' ), icons: { primary:'ui-icon-search' } } );
 117+ if ( skin == 'vector' ) {
 118+ $( '#mw-wikilove-button-preview' ).button( { label: mw.msg( 'wikilove-button-preview' ), icons: { primary:'ui-icon-search' } } );
 119+ } else {
 120+ $( '#mw-wikilove-button-preview' ).button( { label: mw.msg( 'wikilove-button-preview' ) } );
 121+ }
118122 $( '#mw-wikilove-button-send' ).button( { label: mw.msg( 'wikilove-button-send' ) } );
119123 $( '#mw-wikilove-add-details' ).hide();
120124 $( '#mw-wikilove-preview' ).hide();

Status & tagging log