MediaWiki:Gadget-fastbuttons.js/core.js: diferenças entre revisões
Conteúdo apagado Conteúdo adicionado
m Correção |
Manutenção: Uso de typeof ... === 'function' em vez de $.isFunction(...), que tornou-se obsoleta |
||
Linha 40:
* @property {string}
*/
this.version = /*{{subst:Autossubstituição/Estampa com data e hora|js|.*/ '2021-
/**
Linha 81:
var apiDeferred = $.Deferred(),
edit = function ( value ) {
if (
info.text = info.text( value );
}
Linha 111:
// If "info.text" is set and is a function, gets the page content first
// Set "info.getText" if you need get the content of another page other than "info.title"
if ( typeof info.getText === 'string' ||
fastb.notify( fastb.message( 'fastb-notify-getPageContent' ) );
api.getCurrentPageText( info.getText || info.title ).done( function ( value ) {
Linha 226:
item = list[ i ];
if (
item();
} else if ( ( typeof item === 'string' ) || ( item instanceof jQuery ) ) {
Linha 373:
},
promptCallback = function ( comment ) {
if (
btn.action();
} else {
Linha 427:
}
if (
fastb.textButton = btn.text;
}
if (
$( this ).addClass( 'fastb-menu-open' );
}
Linha 460:
props.title = '';
} else {
props.class += 'fastb-' + ( button.type || (
props.click = ( button.action === 'request' ) ? fastb.openPrompt.bind( fastb, 'requests', button ) : buttonClick( button );
}
|