1
Hello all
Since IE7 got into the microshiXt system updates and every windows user will have it at some point (without understanding how far is it from FF) , my users began complaining about the incompibility of the 2.2.x default theme for the IE7 (have I said how lousy it is yet? ) ....
Anyway, to fix the issue that the subs are not getting open, you need to edit the file /themes/default/js/adminmenu.js
look for the area begins with:
this.arrow1 = null
and add what needs to be added (I hacked it long ago for LTR hebrew staff, so just see for yourself what needs to be done ...
this.arrow1 = null; this.arrow2 = null; this.browser = { "ie": Boolean(document.body.currentStyle), "ie5": (navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1),
"ie6": (navigator.appVersion.indexOf("MSIE 6.0") != -1 || navigator.appVersion.indexOf("MSIE 7.0") != -1),
"ie7": (navigator.appVersion.indexOf("MSIE 7.0") != -1)
for RTL support if needed, go a bit down to
this.arrow1 = null
and change what you need acording to my logic (again, the RTL hack was done long ago, so I don't remember what was changed, I just fixed the IE7 compibility now)
var box1 = document.getElementById(id + "-" + (tree.length - 1)); var box2 = document.getElementById(nodes[i].id); var el = new Element(box1.id); if (el.level == 1) { if (this.type == "horizontal") { box2.style.top = (box1.offsetTop + box1.offsetHeight + this.position.level1.top) + "px"; if (this.browser.ie5) { box2.style.left = (this.position.level1.left) + "px";} else if (this.browser.ie6) { box2.style.right = (this.position.level1.left) + "px";}
else if (this.browser.ie7) { box2.style.left = (this.position.level1.left) + "px";}
Hope it'll hep someone