开发者

jQuery links not clickable but i can right click open in new tab?

I am having so much trouble with this site! http://pearsonlyle.uwpi开发者_开发知识库stol.net/galleries/susie-theodorou/editorial/

The navigation that is visible doesn't click, but i can right click and open in new tab. The list is cloned li's based on the selected sub nav.

var subNavParent = $('ul li ul li ul li.selected').parent().parent();
    var subNav = $('ul li ul li ul li.selected').siblings();



    $("<ul class='horizontal-sub-nav-ul'></ul>").appendTo(".header");

    $(subNavParent).clone().appendTo('.horizontal-sub-nav-ul');//grandparent
    $('ul li ul li ul li.selected').clone().appendTo('.horizontal-sub-nav-ul');//siblings

    $(subNav).clone().appendTo('.horizontal-sub-nav-ul');//this

Very irritating!

Anyone have any ideas? Could do with a second, third, fourth and seventh pair of eyes I think!


There is something in file menus.js, method initMenuStylists attach click handler on top menu (Photographers and Stylists), but that method fires on click on the one of Commercial, Editoral and Showreel links!

EDITED

Found it! Code in menus.js that begins from line 122 makes event.preventDefault() for many <a> elements. And also for elements that using for creating your not-working menu with cloning.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜