X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fxmenu.js;h=4050ea04165312f86876ac66c2945b25c2a49cfa;hb=f2ee4eec34fea420c1c434194e410f31b6c9edb0;hp=134265f53d0fd4389e26b9953a8f19a247a21aae;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git
diff --git a/httemplate/elements/xmenu.js b/httemplate/elements/xmenu.js
index 134265f53..4050ea041 100644
--- a/httemplate/elements/xmenu.js
+++ b/httemplate/elements/xmenu.js
@@ -14,7 +14,7 @@
// check browsers
var ua = navigator.userAgent;
-var opera = /opera [56789]|opera\/[56789]/i.test(ua);
+var opera = window.opera || /opera [56789]|opera\/[56789]/i.test(ua);
var ie = !opera && /MSIE/.test(ua);
var ie50 = ie && /MSIE 5\.[01234]/.test(ua);
var ie6 = ie && /MSIE [6789]/.test(ua);
@@ -190,8 +190,10 @@ WebFXMenu.prototype.show = function (relObj, sDir) {
var divElement = document.getElementById(this.id);
if ( divElement ) {
- divElement.style.left = opera ? this.left : this.left + "px";
- divElement.style.top = opera ? this.top : this.top + "px";
+ //divElement.style.left = opera ? this.left : this.left + "px";
+ //divElement.style.top = opera ? this.top : this.top + "px";
+ divElement.style.left = this.left + "px";
+ divElement.style.top = this.top + "px";
divElement.style.visibility = "visible";
if ( ie ) {
@@ -369,7 +371,7 @@ WebFXMenuButton.prototype.toString = function () {
)
)) +
">" +
- (this.subMenu ? "" : "") +
+ (this.subMenu ? "" : "") +
this.text +
"";
};