- Posts: 99
- Thank you received: 0
Menu not work
-
mojastran
Inactive member -
- Member
-
Less
More
11 years 9 months ago - 11 years 9 months ago #31291
by mojastran
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
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
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.
-
mojastran
Inactive member -
- Member
-
Less
More
- Posts: 99
- Thank you received: 0
11 years 9 months ago #31293
by mojastran
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)
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 9 months ago #31305
by ivan.milic
Replied by ivan.milic on topic Menu link
Change :
to
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.
Time to create page: 0.088 seconds