Wrap old toolbar addButton() calls in a document ready, so they're not run early and explode in debug mode
This commit is contained in:
parent
f29d0359d1
commit
cefa6bab99
1 changed files with 1 additions and 1 deletions
|
|
@ -2381,7 +2381,7 @@ HTML
|
|||
}
|
||||
|
||||
$wgOut->addScript( Html::inlineScript(
|
||||
"if ( window.mediaWiki ) { $script }"
|
||||
"if ( window.mediaWiki ) { jQuery(function(){{$script}}); }"
|
||||
) );
|
||||
|
||||
$toolbar .= "\n</div>";
|
||||
|
|
|
|||
Loading…
Reference in a new issue