「MediaWiki:Gadget-StyleGuide.js」の版間の差分

fix
編集の要約なし
(fix)
551行目: 551行目:
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
     mw.loader.using( 'user.options', function () {
     mw.loader.using( 'user.options').then( function() {  
         if ( mw.user.options.get( 'usebetatoolbar' ) == 1 && mw.user.options.get( 'showtoolbar' ) == 1 ) {
         if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
$.when(
$.when(
mw.loader.using( 'ext.wikiEditor.toolbar' ),
mw.loader.using( 'ext.wikiEditor' ),
$.ready
$.ready
).then( customizeToolbar );
).then( customizeToolbar );