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

Toggle shouldn't follow anchor
This commit is contained in:
arjun810
2012-10-13 16:01:58 -07:00

View File

@@ -16,6 +16,7 @@ class @Collapsible
el.find('.collapsible header a').click @toggleHint
@toggleFull: (event) =>
event.preventDefault()
$(event.target).parent().siblings().slideToggle()
$(event.target).parent().parent().toggleClass('open')
if $(event.target).text() == 'See full output'