Utente:Sanjilops/monobook.js: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
mNessun oggetto della modifica
m (debug)
Riga 130: Riga 130:
httpRequest.onreadystatechange = function () { Response(httpRequest, id); return;};
httpRequest.onreadystatechange = function () { Response(httpRequest, id); return;};
var url = wgServer + wgScriptPath + "/api.php";
var url = wgServer + wgScriptPath + "/api.php";
var param = "action=edit&format=xml&title=" + encodeURI(wgPageName).replace(/&/g, "%26").replace(/\+/g, "%2B");
var param = "action=edit&format=txt&title=" + encodeURI(wgPageName).replace(/&/g, "%26").replace(/\+/g, "%2B");
param += "&token=" + document.getElementsByName("wpEditToken")[0].value.replace(/\+\\/, '%2B%5C');
param += "&token=" + document.getElementsByName("wpEditToken")[0].value.replace(/\+\\/, '%2B%5C');
temp = document.getElementById("wpSummary").value;
temp = document.getElementById("wpSummary").value;
Riga 162: Riga 162:
return;
return;
}
}
alert(o.responseText); return; }
/*
if (o.responseXML == null) {
if (o.responseXML == null) {
alert("Errore nella risposta del server. Controlla nella cronologia se il salvataggio è avvenuto");
alert("Errore nella risposta del server. Controlla nella cronologia se il salvataggio è avvenuto");
Riga 222: Riga 224:


}
}
*/

function Finish(success) {
function Finish(success) {
document.getElementById("quicksaveButton").disabled = false;
document.getElementById("quicksaveButton").disabled = false;