Utente:Jalo/monobook.js/test: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 87:
 
// Functions auxFicus and Ficus
/*function auxFicus(){
// Carica il textbox1
wpTextbox1 = document.getElementById("wpTextbox1");
/*
 
if (curTemplate == "A")
{
Riga 138:
var summary = "+Enciclopedicità dubbia"; break;
}
*/
 
// Scrive l'oggetto della modifica
summ=document.getElementById("wpSummary");
Riga 146:
RemoveNode('inlinePopupDiv');
}
 
*/
function Ficus(Template){
alert("in ficus");
Riga 267:
div.appendChild(top);
 
// crea la spiegazione
var greet = document.createElement('p');
greet.innerHTML = Greeter;
div.appendChild(greet);
 
var form = document.createElement('form');
form.name = "popupForm";
var p = document.createElement('p');
 
alert("creo motivazione");
// crea casella di testo "Motivazione:"
if (Template == "A" ||
Template == "C" ||
Template == "P" ||
Template == "E")
{
p.appendChild(document.createTextNode('Motivazione:'));
var myedit = document.createElement('input');
myedit.name = 'editReason';
myedit.id = 'motivo';
myedit.type = 'text';
p.appendChild(myedit);
}
alert("creo argomento");
// crea la combo box "Argomento:"
if (Template == "A" ||
Template == "C" ||
Template == "P" ||
Template == "W" ||
Template == "S" ||
Template == "O" ||
Template == "E")
{
p.appendChild(document.createTextNode('Argomento:'));
var sel = document.createElement('select');
 
var sel.name = document.createElement('selectpopupSelect');
sel.nameid = 'popupSelectargomento';
sel.idsize = 'argomento'1;
var sel.size = 1option;
for (i = 0; vari option< arrayArgument.length; i++){
for (ioption = 0;new Option(arrayArgument[i],' < arrayArgument.length'); i++){
option.value = new Option(arrayArgument[i],' ');
optionsel.valueoptions[sel.options.length] = arrayArgument[i]option;
sel.options[sel.options.length] = option;
}
p.appendChild(sel);
}
p.appendChild(sel);
}
// crea il bottone "OK"
var button = document.createElement('input');
button.value = 'OK';
button.type = 'button';
button.setAttribute('onclick', 'auxFicus()');
p.appendChild(button);
 
// reimposta il tutto
form.appendChild(p);
div.appendChild(form);
 
// e lo mostra a video