Skip to content

Commit

Permalink
added hilite to cutting-edge menu when clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
impressivewebs committed Apr 4, 2012
1 parent 84981ea commit 539d984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ var s = null,
if (view === 'common') {
s.commonList.slideDown(s.speed);
s.edgeList.slideUp(s.speed);
document.location = '#box-sizing';
} else {
s.edgeList.slideDown(s.speed);
s.commonList.slideUp(s.speed);
document.location = '#calc';
}

},
Expand All @@ -172,7 +174,7 @@ var s = null,
s.dlHREF = $('.propsnav').find('a[href$="' + view + '"]');

if (s.dlHREF.parent().parent().attr('id') === 'commonlist') {

s.commonList.slideDown(s.speed);
s.edgeList.slideUp(s.speed);
s.btnCommon.addClass('selected');
Expand All @@ -181,7 +183,7 @@ var s = null,
} else {

s.commonList.slideUp(s.speed);
s.commonList.slideUp(s.speed);
s.edgeList.slideDown(s.speed);
s.btnEdge.addClass('selected');
s.btnCommon.removeClass('selected');

Expand Down

0 comments on commit 539d984

Please sign in to comment.