Sha256: 07fa01450533258d68d200ff3a0fc89014f9ad8230ca341beaa46a14f669f134
Contents?: true
Size: 1.12 KB
Versions: 13
Compression:
Stored size: 1.12 KB
Contents
// Init sidebar $(function() { var activeItem, helpList = $('#js-help-sidebar .subgroup'), firstOccurance = true $('#js-help-sidebar .subgroup').each(function(){ if($(this).find('.disable').length == 0 || firstOccurance == false){ $(this).find('.js-guides').children().hide() } else { activeItem = $(this).index() firstOccurance = false } }) $('#js-help-sidebar .subgroup h3 a').click(function(){ var clickedTopic = $(this).parents('.subgroup'), topicGuides = clickedTopic.find('.subgroup li') if(activeItem != clickedTopic.index()){ if(helpList.eq(activeItem)){ helpList.eq(activeItem).find('.subgroup 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') } }) });
Version data entries
13 entries across 13 versions & 1 rubygems