Main menu link problems

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Jun 13, 2014 4:53 pm
Reply with quote
Report this post
Have to click the main menu links twice (news2 template) before they work.

How do I fix this?


http://www.derbyalcohol.org.uk/
User avatar
Expert Boarder

GK User
Fri Jun 13, 2014 7:22 pm
Reply with quote
Report this post
Hello,

Are you sure? For me the links are working totally normal - one click causes redirect.
User avatar
Administrator

GK User
Mon Jun 16, 2014 12:05 pm
Reply with quote
Report this post
Hi dziudek,

What browser and system are you using?
User avatar
Expert Boarder

GK User
Mon Jun 16, 2014 7:39 pm
Reply with quote
Report this post
I've tested it on Chrome, Firefox and Safari on OS X.
User avatar
Administrator

GK User
Sat Jun 21, 2014 10:37 am
Reply with quote
Report this post
i have been having the same problem for months. guidetogay.com lead/first level menu items require a double click to work.

is there a fix?
User avatar
Platinum Boarder

GK User
Sat Jun 21, 2014 10:59 pm
Reply with quote
Report this post
Now I see the reason of my problems with detecting the issue - the problem is only with links on the first level - I've clicked the submenu items. You can temporary fix the problem by removing the following fragment from the js/gk.menu.js file:

Code: Select all
// fix for the iOS devices     
        /* jshint ignore:start */
        jQuery('#gkExtraMenu ul li span').each(function(i, el) {
            el.attr('onmouseover', '');
        });
      /* jshint ignore:end */
        jQuery('#gkExtraMenu ul li a').each(function(i, el) {
            el = jQuery(el);
            el.attr('onmouseover', '');

            if(el.parent().hasClass('haschild') && jQuery(document.body).attr('data-tablet') !== null) {
                el.click(function(e) {
                    if(el.attr("dblclick") === undefined) {
                        e.preventDefault();
                        e.stopPropagation();
                        el.attr("dblclick", new Date().getTime());
                    } else {
                  if(el.parent().find('div.childcontent').eq(0).css('overflow') == 'visible') {
                     window.location = el.attr('href');
                  }
                        var now = new Date().getTime();
                        if(now - el.attr("dblclick", 0) < 500) {
                            window.location = el.attr('href');
                        } else {
                           e.preventDefault();
                           e.stopPropagation();
                           el.attr("dblclick", new Date().getTime());
                        }
                    }
                });
            }
        });
User avatar
Administrator

GK User
Wed Jun 25, 2014 7:48 am
Reply with quote
Report this post
FANTASTIC - thanks so much


dziudek wrote:Now I see the reason of my problems with detecting the issue - the problem is only with links on the first level - I've clicked the submenu items. You can temporary fix the problem by removing the following fragment from the js/gk.menu.js file:

Code: Select all
// fix for the iOS devices     
        /* jshint ignore:start */
        jQuery('#gkExtraMenu ul li span').each(function(i, el) {
            el.attr('onmouseover', '');
        });
      /* jshint ignore:end */
        jQuery('#gkExtraMenu ul li a').each(function(i, el) {
            el = jQuery(el);
            el.attr('onmouseover', '');

            if(el.parent().hasClass('haschild') && jQuery(document.body).attr('data-tablet') !== null) {
                el.click(function(e) {
                    if(el.attr("dblclick") === undefined) {
                        e.preventDefault();
                        e.stopPropagation();
                        el.attr("dblclick", new Date().getTime());
                    } else {
                  if(el.parent().find('div.childcontent').eq(0).css('overflow') == 'visible') {
                     window.location = el.attr('href');
                  }
                        var now = new Date().getTime();
                        if(now - el.attr("dblclick", 0) < 500) {
                            window.location = el.attr('href');
                        } else {
                           e.preventDefault();
                           e.stopPropagation();
                           el.attr("dblclick", new Date().getTime());
                        }
                    }
                });
            }
        });
User avatar
Platinum Boarder


cron