Commit ccc5e577 by arjun810

Merge pull request #893 from MITx/kimth/toggle-stay-in-place

Toggle shouldn't follow anchor
parents a46c517a 113e8b97
...@@ -16,6 +16,7 @@ class @Collapsible ...@@ -16,6 +16,7 @@ class @Collapsible
el.find('.collapsible header a').click @toggleHint el.find('.collapsible header a').click @toggleHint
@toggleFull: (event) => @toggleFull: (event) =>
event.preventDefault()
$(event.target).parent().siblings().slideToggle() $(event.target).parent().siblings().slideToggle()
$(event.target).parent().parent().toggleClass('open') $(event.target).parent().parent().toggleClass('open')
if $(event.target).text() == 'See full output' if $(event.target).text() == 'See full output'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment