Sha256: 971fe61f1992684dddb777caeba6372702293e550c33d7ea118025786b16889a

Contents?: true

Size: 516 Bytes

Versions: 13

Compression:

Stored size: 516 Bytes

Contents

$ -> 
  
  
  $(document).on "click", ".lst_lnk", ->
    # nav = $(@).closest(".nav")
    nav = $(@).closest(".nav_list")
    ul  = $(@).closest("ul")
    li  = $(@).closest("li")
    nav.find("li.active" ).removeClass("active")
    nav.find("li.current").removeClass("current")
    until ul.hasClass("nav_list")
      ul.closest("li").addClass("active")
      ul = ul.closest("li").closest("ul")
    li.addClass("current")
    li.addClass("active")
    $(@).blur()
    return false if $(@).attr("href") == "#"
  
  

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
better_styles-0.0.0.338 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.337 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.336 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.335 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.334 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.333 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.332 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.331 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.0.33 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.5 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.4 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.3 assets/javascripts/betterjs/navigations/nav_list.js.coffee
better_styles-0.0.2 assets/javascripts/betterjs/navigations/nav_list.js.coffee