edx/edx-platform — pull request #2870 by ichuang (2014-03-08 02:52:32+00:00)
Title: fix capa textline display to leave "inline" alone upon status change

When a user starts entering something into a capa textline input element, the status is changed from whatever it was before to being "unanswered". If the textline was an inline display element, this property was improperly erased, destroying the formatting of problems where textline inputs are carefully placed to be inline, whenever users begin input.

This PR fixes that error by erasing only the two relevant class attributes (see https://github.com/edx/edx-platform/blob/master/common/lib/capa/capa/templates/textline.html#L11), instead of removing all class attributes.

one line change in `display.coffee`, 19 characters.

@chrisndodge ?