MediaWiki:Common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
fix prima parte warning CodeEditor
fix warning CodeEditor: "Script URL" e "Don't make functions within a loop"
Riga 212:
buttonSearch.parentNode.insertBefore(selectBox, buttonSearch.nextSibling);
});
 
function hopMouseOverHandler(event) {
event.data.hopContent.style.display = "block";
}
 
function hopMouseOutHandler(event) {
event.data.hopContent.style.display = "none";
}
 
// Serve per far funzionare il Cassetto2 con IE6.
Riga 222 ⟶ 230:
if (y[j].className == "HopContent") {x[i].hopContent = y[j]; break;}
if (j<y.length) {
$(x[i]).onmouseover=functionmouseover() {x[i], this.hopContent.style.display="block"; }hopMouseOverHandler);
$(x[i]).onmouseout=functionmouseout() {x[i], this.hopContent.style.display="none"; }hopMouseOutHandler);
}
}
Riga 304 ⟶ 312:
}
}
}
 
function navToggleClickHandler(event) {
event.preventDefault();
toggleNavigationBar(event.data);
}
 
Riga 324 ⟶ 337:
NavToggle.className = 'NavToggle';
NavToggle.setAttribute('id', 'NavToggle' + indexNavigationBar);
$(NavToggle).setAttributeattr('href', 'javascript:toggleNavigationBar#').click(' + indexNavigationBar, + ');'navToggleClickHandler);
 
var NavToggleText = document.createTextNode(NavigationBarHide);
Riga 391 ⟶ 404:
Button.firstChild.data = collapseCaption;
}
}
 
function buttonLinkClickHandler(event) {
event.preventDefault();
collapseTable(event.data);
}
 
Riga 416 ⟶ 434:
 
ButtonLink.setAttribute( "id", "collapseButton" + tableIndex );
$(ButtonLink).setAttributeattr( "'href"', "javascript:collapseTable'#').click(" + tableIndex, + ");" buttonLinkClickHandler);
ButtonLink.appendChild( ButtonText );