מדיה ויקי:Monobook.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| (5 גרסאות ביניים של אותו משתמש אינן מוצגות) | |||
| שורה 151: | שורה 151: | ||
{ | { | ||
done = true; | done = true; | ||
if ((headings[i - 1].innerHTML == " | if ((headings[i - 1].innerHTML == "עמוד ראשי") && (document.getElementById("contentSub").innerHTML == "")) | ||
{ | { | ||
headings[i - 1].style.display = "none"; | headings[i - 1].style.display = "none"; | ||
document.getElementById("siteSub").style.display = "none"; | document.getElementById("siteSub").style.display = "none"; | ||
document.getElementById("contentSub").style.display = "none"; | document.getElementById("contentSub").style.display = "none"; | ||
var LIs = document.getElementsByTagName("li"); | |||
var h, doneH = false; | |||
for (h = 0; (h < LIs.length) && (!doneH); h++) | |||
{ | |||
if (LIs[h].id == "ca-nstab-main") | |||
{ | |||
LIs[h].firstChild.innerHTML = "העמוד הראשי"; | |||
doneH = true; | |||
} | |||
} | |||
} | } | ||
} | } | ||