MediaWiki:Gadget-tradLink.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m var
m -prefissi
Riga 5:
* Autore : [[:it:User:Jalo]]
*
* Lo script contiene funzioni (tradLink_showDialogshowDialog e keypress) derivate da:
* http://it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-tb-base.js&oldid=66478020
* scritto da [[:it:User:Rotpunkt]]
Riga 30:
 
// Show the dialog in order to ask for the template parameters.
function tradLink_showDialogshowDialog( data, page ) {
var lingue = tradLink_getLinguegetLingue(),
$dialog = $( '#gtb-dialog' ).html( "Inserire l'elenco delle lingue da utilizzare per il tool TradLink" ),
$fieldset = $( '<fieldset>' ).css( 'border-color', 'gray' ).appendTo( $dialog );
Riga 82:
}
 
function tradLink_getLinguegetLingue() {
var value = "",
name = "tradLinkLangs=",
Riga 99:
}
 
function tradLink_tradLinktradLink( cod ) {
var lingue = tradLink_getLinguegetLingue();
 
var toTrad = mw.html.escape( $( '#wpTextbox1' ).textSelection( 'getSelection' ) );
Riga 159:
if ( event.which === 48 ) {
// configure
tradLink_showDialogshowDialog();
event.preventDefault();
} else if ( event.which >= 49 && event.which < 57 ) {
// execute
tradLink_tradLinktradLink( event.which - 49 );
event.preventDefault();
}