Kunena Menu
Close menu on selection
- johnoatwork
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
11 years 5 months ago #27628
by johnoatwork
Replied by johnoatwork on topic Close menu on selection
It closes if you click its parent. So I guess what I need it a reference to the parent of the current active link.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #27630
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Close menu on selection
the active class is added to the <li> element, so you can get it with something like
"li.active > a"
"li.active > a"
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- johnoatwork
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
11 years 5 months ago #27631
by johnoatwork
Replied by johnoatwork on topic Close menu on selection
The event below only fires when you click the home icon. Clicking any other menu items, either parent or child does not fire the event.
jQuery("li.active > a").click(function() {
alert("firing");
});
jQuery("li.active > a").click(function() {
alert("firing");
});
Please Log in or Create an account to join the conversation.
11 years 5 months ago #27632
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Close menu on selection
here you are catching the click event, not fire it
give me your url to check
give me your url to check
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- johnoatwork
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
11 years 5 months ago #27633
by johnoatwork
Replied by johnoatwork on topic Close menu on selection
There is a fairly rough development instance at
dev.visagateway.com.au/
Please Log in or Create an account to join the conversation.
- johnoatwork
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
11 years 5 months ago #27634
by johnoatwork
Replied by johnoatwork on topic Close menu on selection
I know the code isn't triggering a click. At the moment just trying to identify the element I need to click to close.
Please Log in or Create an account to join the conversation.
Time to create page: 0.220 seconds



