mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
Merge "Adapt toolbar icon change to change 19789d76 in WikiEditor"
This commit is contained in:
commit
0a7dc634fc
|
@ -280,9 +280,9 @@
|
|||
$( '.group-codeeditor-main' ).prependTo( '.section-main' );
|
||||
},
|
||||
updateButtonIcon: function ( targetName, iconFn ) {
|
||||
var target = 'img.tool[rel=' + targetName + ']',
|
||||
$img = context.modules.toolbar.$toolbar.find( target );
|
||||
$img.attr( 'src', iconFn() );
|
||||
var target = '.tool[rel=' + targetName + ']',
|
||||
$icon = context.modules.toolbar.$toolbar.find( target );
|
||||
$icon.css( 'background-image', 'url(' + iconFn() + ')' );
|
||||
},
|
||||
updateCodeEditorToolbarButton: function () {
|
||||
context.fn.updateButtonIcon( 'codeEditor', context.fn.codeEditorToolbarIcon );
|
||||
|
|
Loading…
Reference in a new issue