MediaWiki:Common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 538:
/* Allarga l'edittools a tutta pagina */
document.getElementById("Standard").style.width = "100%";
}
});
 
/* Aggiunge il testo delle note come tooltip delle note stesse */
$ ( function ()
{
sups = document.getElementsByTagName("sup");
for (i=0; i<sups.length; i++)
{
note_id = sups[i].childNodes[0].href;
if (note_id && (note_id.indexOf("#") != -1))
{
note_id = document.getElementById(note_id.substr(note_id.indexOf("#")+1));
if (note_id)
if (document.all)
{
sups[i].title = note_id.innerText;
sups[i].childNodes[0].title = note_id.innerText;
}
else
{
sups[i].title = note_id.textContent;
}
}
}
});