5,322
回編集
細編集の要約なし |
細 (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' | mw.loader.using( 'user.options').then( function() { | ||
if ( mw.user.options.get( 'usebetatoolbar | if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { | ||
$.when( | $.when( | ||
mw.loader.using( 'ext.wikiEditor | mw.loader.using( 'ext.wikiEditor' ), | ||
$.ready | $.ready | ||
).then( customizeToolbar ); | ).then( customizeToolbar ); |