Zen Cart Logo
Forums / Bug Reports / [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

[Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Locked

Views: 4,696

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
24 Jun 2012, 3:40 AM
#1
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

[Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Greetings all

Could some Opera users out there, check the admin in Opera 12

The dropdown menus in Admin (config, catalog, modules, customers etc) don't seem to work correctly with the latest version of Opera.

The drop down menus seem to be appearing almost completely off the screen to the extreme left, I can only see a small portion of the menu in the viewable area

(I tried on a 1.39h site and it seems to be effected also)

About Opera
Version information
Version
12.00
Build
1467
Platform
Win32 (I am running on a 64 bit machine)
System
Windows Vista

Cheers

24 Jun 2012, 7:38 AM
#2
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Hmmm thats odd I seem to be the only one.

I think I have traced the problem to the

admin/includes/menu.js file

For some reason the value of "point.x" isn't being set correctly, although i have not a clue how to get further, i am wondering if the parent thingie has been changed or something

javascript was never my thing

24 Jun 2012, 5:04 PM
#3
xp1 avatar

xp1

New Zenner

Join Date:
Jun 2012
Posts:
2
Plugin Contributions:
0

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Did you look at the cssjsmenu function in "/zencart/adminx/includes/menu.js"?
The cssjsmenu function is so disgusting that there is probably a bug in there. That function needs some refactoring.

Comment this line:

child.style.position = 'static';

Comment this line:

child.style.left = '-13em';

Comment this line:

setPageXY(child, point.x, point.y + this.offsetHeight);

At least, it will work now.

You also posted this in the Opera forums:
http://my.opera.com/community/forums/topic.dml?id=1451592

24 Jun 2012, 10:24 PM
#4
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Thanks heaps for that XP1, its much appreciated, and also thanks for posting the solution here as well as the Opera forum.

The main reason i also posted on the Opera forum was in the hope someone familiar with Opera could point me in the right direction or at least let me know what exactly had changed (Operawise) that was causing this script to break.

24 Jun 2012, 10:51 PM
#5
xp1 avatar

xp1

New Zenner

Join Date:
Jun 2012
Posts:
2
Plugin Contributions:
0

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

nigelt74:

Thanks heaps for that XP1, its much appreciated, and also thanks for posting the solution here as well as the Opera forum.

The main reason i also posted on the Opera forum was in the hope someone familiar with Opera could point me in the right direction or at least let me know what exactly had changed (Operawise) that was causing this script to break.> nigelt74:

Cheers for that, yes I did cross post between here and the zencart forums, mainly because I just couldn't figure out what in Opera 12 has changed, and it will effect Zencarts Opera Users.

I have in the past got the Javascript for a couple of zencart add-ons to work correctly with Opera, but that was more a case of trial and eroor and the javascript was easier to read, whereas this javascript was a bit more obtuse, i couldn't quite get my head around it.The code was from Netscape, year 2003:
http://devedge-temp.mozilla.org/viewsource/2003/devedge-redesign-js/index_en.html

Code so old, it's not guaranteed to work in modern browsers. Yes, based on this code's style, it is hard to read.

There are a lot of old browser traps in there that are not very relevant today. I'd say that the code needs to be rewritten for the current decade.

12 Jul 2012, 6:32 PM
#6
weirdorecords avatar

weirdorecords

New Zenner

Join Date:
May 2010
Posts:
72
Plugin Contributions:
0

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Just wanted to post a thanks for this. I had the same problem & this fix was easy & perfect.

11 Sep 2012, 11:20 AM
#7
nowa avatar

nowa

New Zenner

Join Date:
Sep 2012
Location:
Lopik
Posts:
5
Plugin Contributions:
0

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Perfect! Worked for me too. This bug really annoyed me.

19 Sep 2012, 2:46 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Fixed v1.5.1] Admin Menus don't work in Opera 12 for Windows

Fixes included in v1.5.1