MédiaWiki:Common.js: Béda antarrépisi
Konten dihapus Konten ditambahkan
repairing the external search javascript. |
IE fix at bottom else it tend to crash the javascript under it in firefox |
||
Baris ka-67:
})();
/** Internet Explorer bug fix **************************************************▼
*▼
* Description: UNDOCUMENTED▼
* Maintainers: [[User:Tom-]]?▼
*/▼
if (window.showModalDialog && document.compatMode && document.compatMode == "CSS1Compat")▼
{▼
var oldWidth;▼
var docEl = document.documentElement;▼
function fixIEScroll()▼
{▼
if (!oldWidth || docEl.clientWidth > oldWidth)▼
doFixIEScroll();▼
else▼
setTimeout(doFixIEScroll, 1);▼
oldWidth = docEl.clientWidth;▼
}▼
function doFixIEScroll() {▼
docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth < 4) ? "hidden" : "";▼
}▼
document.attachEvent("onreadystatechange", fixIEScroll);▼
attachEvent("onresize", fixIEScroll);▼
}▼
/** Interwiki links to featured articles ***************************************
Baris 1.044 ⟶ 1.016:
/*HERE FINISHES THE WORKING-CODE OF "METABOXES"*/
▲ /** Internet Explorer bug fix **************************************************
▲ *
▲ * Description: UNDOCUMENTED
▲ * Maintainers: [[User:Tom-]]?
▲ */
▲ if (window.showModalDialog && document.compatMode && document.compatMode == "CSS1Compat")
▲ {
▲ var oldWidth;
▲ var docEl = document.documentElement;
▲ function fixIEScroll()
▲ {
▲ if (!oldWidth || docEl.clientWidth > oldWidth)
▲ doFixIEScroll();
▲ else
▲ setTimeout(doFixIEScroll, 1);
▲ oldWidth = docEl.clientWidth;
▲ }
▲ function doFixIEScroll() {
▲ docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth < 4) ? "hidden" : "";
▲ }
▲ document.attachEvent("onreadystatechange", fixIEScroll);
▲ attachEvent("onresize", fixIEScroll);
▲ }
|