mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-13 18:36:57 +00:00
bddd21b300
* Added closures for jQuery where missing. * Added closures for mediaWiki where missing. * Using ready( $ ) where possible. * Removed empty CSS block. Change-Id: Ifdd4b10063221a4967d812eafd43858623ec5d28
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Dialogs
|
|
*/
|
|
jQuery( document ).ready( function ( $ ) {
|
|
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.dialogs ) ) {
|
|
return;
|
|
}
|
|
|
|
// Replace icons
|
|
$.wikiEditor.modules.dialogs.config.replaceIcons( $( '#wpTextbox1' ) );
|
|
|
|
// Add dialogs module
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', $.wikiEditor.modules.dialogs.config.getDefaultConfig() );
|
|
} );
|