Permalink
Browse files

Change parent-find jQuery methods to next()

  • Loading branch information...
1 parent 8c18baf commit 28c586772ea5712fb2bb30e1f8f7a9675fa32a40 Andy Zhang committed Mar 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/index.coffee
@@ -19,4 +19,4 @@ $ ->
$('.code a').click (event) ->
event.preventDefault()
- $(@).parent().find('.codeblock').slideToggle()
+ $(@).next('.codeblock').slideToggle()

0 comments on commit 28c5867

Please sign in to comment.