437
modifications
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 913 : | Ligne 913 : | ||
/* 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 ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { | if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { | ||
mw.loader.using( 'user.options' ).then( function () { | mw.loader.using( 'user.options' ).then( function () { | ||
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]]) | // This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]]) | ||
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { | if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { | ||
alert ('on passe par usebetatoolbar'); | |||
$.when( | $.when( | ||
mw.loader.using( 'ext.wikiEditor' ), $.ready | mw.loader.using( 'ext.wikiEditor' ), $.ready |