diff options
| author | Cameron McEfee <cameron@github.com> | 2011-05-16 13:30:40 -0700 |
|---|---|---|
| committer | Cameron McEfee <cameron@github.com> | 2011-05-16 16:55:31 -0700 |
| commit | e7ed98598686739d523f6dc18820468f45656531 (patch) | |
| tree | 0a13bb624d8262fac916911f00ab743ea5a66bae /global/js/documentation.js | |
| parent | 2575b8a597d3febb0088d02fb64214c3dbd5fd57 (diff) | |
add global assets
Diffstat (limited to 'global/js/documentation.js')
| -rw-r--r-- | global/js/documentation.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/global/js/documentation.js b/global/js/documentation.js deleted file mode 100644 index 0625a91..0000000 --- a/global/js/documentation.js +++ /dev/null @@ -1,38 +0,0 @@ -// Init sidebar -$(function() { - var activeItem, - helpList = $('#js-help-sidebar .js-topic') - - $('#js-help-sidebar .js-guides').each(function(){ - //if($(this).find('.disable').length == 0){ - $(this).children().hide() - //} - }) - - $('#js-help-sidebar .js-topic h3 a').click(function(){ - var clickedTopic = $(this).parents('.js-topic'), - topicGuides = clickedTopic.find('.js-guides li') - - if(activeItem != clickedTopic.index()){ - if(helpList.eq(activeItem)){ - helpList.eq(activeItem).find('.js-guides li').toggle(100) - } - activeItem = clickedTopic.index() - topicGuides.toggle(100) - } else { - activeItem = undefined - topicGuides.toggle(100) - } - - return false - }) - - $('.help-search .search-box').focus(function(){ - $(this).css('background-position','0px -25px') - }) - $('.help-search .search-box').focusout(function(){ - if($(this).val() == ''){ - $(this).css('background-position','0px 0px') - } - }) -});
\ No newline at end of file |
