mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-09-23 10:26:26 +00:00
Do not add a background image if the icon is not defined
Bug: T172500 Change-Id: Ib658651e04090ec4f5bc1f5bacbbfb0d7e7f893e
This commit is contained in:
parent
6e0e71844b
commit
3e14a90fb7
|
@ -336,7 +336,7 @@
|
|||
$button
|
||||
.addClass( 'wikiEditor-toolbar-spritedButton' )
|
||||
.css( 'backgroundPosition', offsetOrIcon[ 0 ] + 'px ' + offsetOrIcon[ 1 ] + 'px' );
|
||||
} else {
|
||||
} else if ( offsetOrIcon !== undefined ) { // Bug T172500
|
||||
$button
|
||||
.css( 'background-image', 'url(' + offsetOrIcon + ')' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue