Commit ab0cada6 by Brian Talbot

studio - revises main nav dropdown jquery selectors

parent 2a04eeec
...@@ -56,11 +56,11 @@ $(document).ready(function() { ...@@ -56,11 +56,11 @@ $(document).ready(function() {
// nav - dropdown related // nav - dropdown related
$body.click(function(e) { $body.click(function(e) {
$('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown'); $('.nav-dd .nav-item .wrapper-nav-sub').removeClass('is-shown');
$('.nav-dropdown .nav-item .title').removeClass('is-selected'); $('.nav-dd .nav-item .title').removeClass('is-selected');
}); });
$('.nav-dropdown .nav-item .title').click(function(e) { $('.nav-dd .nav-item .title').click(function(e) {
$subnav = $(this).parent().find('.wrapper-nav-sub'); $subnav = $(this).parent().find('.wrapper-nav-sub');
$title = $(this).parent().find('.title'); $title = $(this).parent().find('.title');
...@@ -71,8 +71,8 @@ $(document).ready(function() { ...@@ -71,8 +71,8 @@ $(document).ready(function() {
$subnav.removeClass('is-shown'); $subnav.removeClass('is-shown');
$title.removeClass('is-selected'); $title.removeClass('is-selected');
} else { } else {
$('.nav-dropdown .nav-item .title').removeClass('is-selected'); $('.nav-dd .nav-item .title').removeClass('is-selected');
$('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown'); $('.nav-dd .nav-item .wrapper-nav-sub').removeClass('is-shown');
$title.addClass('is-selected'); $title.addClass('is-selected');
$subnav.addClass('is-shown'); $subnav.addClass('is-shown');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment