16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
.appendTo( $head );
$container.one( 'mouseover', function () { // Try load on demand earliest as possible
mw.loader.load( [ 'oojs-ui-core', 'oojs-ui-widgets', 'oojs-ui-toolbars', 'oojs-ui-windows' ] );
} );
$( this ).toggleClass( 'cat_a_lot_enabled' );
// Load autocomplete on demand
mw.loader.using( [ 'oojs-ui-core', 'oojs-ui-widgets', 'oojs-ui-toolbars', 'oojs-ui-windows' ], initAutocomplete );
if ( !CAL.executed ) {
$.when( mw.loader.using( [
'oojs-ui-core',
'oojs-ui-widgets',
'oojs-ui-toolbars',
'oojs-ui-windows',
'mediawiki.api',
if ( $( '#cat_a_lot_comment' ).prop( 'checked' ) ) { this.summary = window.prompt( msg( 'edit-question' ), '' ); } // TODO custom pre-value
if ( this.summary !== null ) {
mw.loader.using( [ 'oojs-ui-core', 'oojs-ui-widgets', 'oojs-ui-toolbars', 'oojs-ui-windows', 'jquery.spinner', 'mediawiki.util' ], function () {
CAL.showProgress();
CAL.getTargetCat( pages, targetcat, mode );
createCatLinks: function ( symbol, list, table ) {
list.sort();
var button = ( this.settings.button && mw.loader.getState( 'oojs-ui-core' ) === 'ready' && mw.loader.getState( 'oojs-ui-widgets' ) === 'ready' && mw.loader.getState( 'oojs-ui-toolbars' ) === 'ready' && mw.loader.getState( 'oojs-ui-windows' ) === 'ready' ) ? 1 : 0;
for ( var c = 0; c < list.length; c++ ) {
var $tr = $( '<tr>' ),
|