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

Contenuto cancellato Contenuto aggiunto
m erano giuste prima
l'encoding viene fatto da getJSON, comunque servirebbe rawurlencode, non html.escape
Riga 103:
var lingue = getLingue();
 
var toTrad = mw.html.escape( $( '#wpTextbox1' ).textSelection( 'getSelection' ) );
$.getJSON( "https://" + lingue[ cod ] + ".wikipedia.org/w/api.php?callback=?", {
action: "query",
prop: "langlinks",
lllang: "it",
titles: toTrad$( '#wpTextbox1' ).textSelection( 'getSelection' ),
format: "json",
redirects: ""