2 clicks on menu main menu root to pages

GK User
Sat Nov 22, 2014 11:08 pm
Hi
I always have to click 2 times to go on pages on root menu (under Links works well (click 1))
how to fix???

thanks in advance
User avatar
Fresh Boarder

GK User
Sun Nov 23, 2014 6:42 pm
Hello,

Please try to remove the following code from the js/gk.menu.js file:

Code: Select all
// fix for the iOS devices     
        document.getElements('#gkExtraMenu ul li span').each(function(el) {
            el.setProperty('onmouseover', '');
        });

        document.getElements('#gkExtraMenu ul li a').each(function(el) {
            el.setProperty('onmouseover', '');

            if(el.getParent().hasClass('haschild') && document.getElement('body').getProperty('data-tablet') != null) {
                el.addEvent('click', function(e) {
                    if(el.retrieve("dblclick", 0) === 0) {
                        e.stop();
                        el.store("dblclick", new Date().getTime());
                    } else {
                       if(el.getParent().getElements('div.childcontent')[0].getStyle('overflow') == 'visible') {
                          window.location = el.getProperty('href');
                       }
                        var now = new Date().getTime();
                        if(now - el.retrieve("dblclick", 0) < 500) {
                            window.location = el.getProperty('href');
                        } else {
                            e.stop();
                            el.store("dblclick", new Date().getTime());
                        }
                    }
                });
            }
        });
User avatar
Administrator


cron