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
// 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());
}
}
});
}
});