Page 1 of 1

iphone/safari admin menu button not working

Posted: Tue Sep 01, 2015 12:48 am
by richtea
Hi All,

I tried searching for a solution for this problem but haven't found anything at all anywhere.
If you try to log into any opencart 2.0.x.x admin area on an iPhone with safari, it appears you can't click the menu button to make the vertical menu slide out from the left. Nothing happens, I've tried it on opencarts demo site, same problem.

I am using an iPhone 4s with safari, but when i downloaded chrome it work fine.
I have also tried on an iPhone 6 with safari and get the same issue.

Does anybody have any bright ideas on how to fix this problem? It's like it just isn't recognizing the click event in the javascript.

Any help would be much appreciated!

Rich

Re: iphone/safari admin menu button not working

Posted: Fri Sep 04, 2015 5:01 am
by richtea
Nobody has any idea?

Re: iphone/safari admin menu button not working

Posted: Tue Sep 15, 2015 8:22 am
by madeureka
A temporary fix is to make the menu stay all the time open. instead of click trigger make it stay always open. is not a real fix but do the job....

Re: iphone/safari admin menu button not working

Posted: Mon Sep 21, 2015 2:58 pm
by richtea
That's not really an option. The menu being open all the time leaves the rest of the site unusable on a mobile device.
I can't believe nobody else has noticed this issue at all?

I may only on specfic devices who knows, but it's a pretty serious bug nontheless!

Re: iphone/safari admin menu button not working

Posted: Tue Sep 06, 2016 7:57 pm
by ghulamali2612
Find this line in admin/view/javascript/common.js

Code: Select all

$('#button-menu').on('click', function() {
and replace this code with this

Code: Select all

var ua = navigator.userAgent,
event = (ua.match(/iPhone/i)) ? "touchstart" : "click";
$('#button-menu').on(event, function() {
I hope this help all who want to activate the admin menu on iphone/safari