Hide submit button after student submits

This commit is contained in:
Vik Paruchuri
2013-08-15 14:15:19 -04:00
parent 9211a38374
commit f8dab92ba6
2 changed files with 2 additions and 1 deletions

View File

@@ -375,6 +375,7 @@ class @CombinedOpenEnded
save_answer: (event) =>
event.preventDefault()
@submit_button.hide()
max_filesize = 2*1000*1000 #2MB
pre_can_upload_files = @can_upload_files
if @child_state == 'initial'

View File

@@ -182,7 +182,7 @@ class OpenEndedChild(object):
whitelist_tags=set(['embed', 'iframe', 'a', 'img']))
clean_html = cleaner.clean_html(answer)
clean_html = re.sub(r'</p>$', '', re.sub(r'^<p>', '', clean_html))
except:
except Exception:
clean_html = answer
return clean_html