Commit a8988c39 by Calen Pennington

Merge pull request #810 from MITx/bugfix/victor/too-collapsible

Make collapsibles not collapse the entire page
parents f627c9e9 85893c77
...@@ -18,8 +18,11 @@ class @Collapsible ...@@ -18,8 +18,11 @@ class @Collapsible
@toggleFull: (event) => @toggleFull: (event) =>
$(event.target).parent().siblings().slideToggle() $(event.target).parent().siblings().slideToggle()
$(event.target).parent().parent().toggleClass('open') $(event.target).parent().parent().toggleClass('open')
text = $(event.target).text() == 'See full output' ? 'Hide output' : 'See full output' if $(event.target).text() == 'See full output'
$(this).text(text) new_text = 'Hide output'
else
new_text = 'See full ouput'
$(event.target).text(new_text)
@toggleHint: (event) => @toggleHint: (event) =>
event.preventDefault() event.preventDefault()
......
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