Menu not work

More
11 years 9 months ago - 11 years 9 months ago #31291 by mojastran
Replied by mojastran on topic Menu link
Thanks for your effort, but it doesn't work.
I changed hot_onepage.js as suggested and tried in menu link #tabs-4 first and then http://javascript::jQuery('a[href="#tabs-4"]').trigger('click'); but in first case nothing happens and in other an empty page opens as before.
ps.
I noticed now that link #tabs-4 works if this tab is active (if i click on it first)

Best regards
Last edit: 11 years 9 months ago by mojastran.

Please Log in to join the conversation.

More
11 years 9 months ago #31292 by ivan.milic
Replied by ivan.milic on topic Menu link
Set #tabs-4 and give me link to inspect further. It should work.

Please Log in to join the conversation.

More
11 years 9 months ago #31293 by mojastran
Replied by mojastran on topic Menu link
The link is: zwcad.mojastran.net/programska-oprema/zwcad/zwcad-professional
Menu item Prenosi should scroll the page to first tab container and open tab Prenosi.
This only happens if this tab is already active, though without scrolling (it jumps there instantly)

Please Log in to join the conversation.

More
11 years 9 months ago #31305 by ivan.milic
Replied by ivan.milic on topic Menu link
Change :
Code:
if(jQuery('.ui-tabs ' + jQuery(this).attr('href'))[0]){ jQuery('.ui-tabs ' + jQuery('.ui-tabs a[href="' + jQuery(this).attr('href') + '"]')).trigger('click');

to
Code:
if(jQuery('.ui-tabs ' + jQuery(this).attr('href'))[0]){ event.preventDefault(); jQuery('.ui-tabs a[href="' + jQuery(this).attr('href') + '"]').trigger('click'); try{ jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500); }catch(e){}
The following user(s) said Thank You: mojastran

Please Log in to join the conversation.

More
11 years 9 months ago #31307 by mojastran
Replied by mojastran on topic Menu link
Thanks,

it works now!

Best regards

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum