Wikipedia:Monobook.js/LiveRC.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 623:
for (i=0; i<len; i++) {
id = nss[i].getAttribute('id');
ns = nss[i].textContent;
if (id < 0) continue;
//Ex "Article"
if (id == 0) ns = "(Principale)";
options += '<option value="' + id + '">' + ns + '</option>';
lstNs.push(id);
}
options = '<option value="' + lstNs.join('|') + '">*</option>' + options;
document.getElementById('selectNS').innerHTML = '<label for="showNS0">'+lang_menu[0].NAMESP+' </label><select id="showNS0">' + options + '</select>';
 
 
/* for (i=0; i<len; i++) {
id = nss[i].getAttribute('id');
ns = nss[i].textContent;
Riga 646 ⟶ 631:
 
//Select namespace (default = *)
// if (checkNamespace && checkNamespace == id)
// options += '<option value="' + id + ' SELECTED ' + '">' + ns + '</option>';
// else
options += '<option value="' + id + '">' + ns + '</option>';
lstNs.push(id);
Riga 654 ⟶ 639:
options = '<option value="' + lstNs.join('|') + '">*</option>' + options;
document.getElementById('selectNS').innerHTML = '<label for="showNS0">'+lang_menu[0].NAMESP+' </label><select id="showNS0">' + options + '</select>';
 
*/
liveWatch();
}
Riga 1 649 ⟶ 1 634:
lvPreviewFoot.innerHTML += '<label for="showLog">' + lang_menu[0].LOGSHOW + ' • </label>';
lvPreviewFoot.innerHTML += '<span id="selectNS" />';
if (lrcPreviewHeight) document.getElementById('livePreview').style.height = lrcPreviewHeight;