Commit f8dab92b by Vik Paruchuri

Hide submit button after student submits

parent 9211a383
...@@ -375,6 +375,7 @@ class @CombinedOpenEnded ...@@ -375,6 +375,7 @@ class @CombinedOpenEnded
save_answer: (event) => save_answer: (event) =>
event.preventDefault() event.preventDefault()
@submit_button.hide()
max_filesize = 2*1000*1000 #2MB max_filesize = 2*1000*1000 #2MB
pre_can_upload_files = @can_upload_files pre_can_upload_files = @can_upload_files
if @child_state == 'initial' if @child_state == 'initial'
......
...@@ -182,7 +182,7 @@ class OpenEndedChild(object): ...@@ -182,7 +182,7 @@ class OpenEndedChild(object):
whitelist_tags=set(['embed', 'iframe', 'a', 'img'])) whitelist_tags=set(['embed', 'iframe', 'a', 'img']))
clean_html = cleaner.clean_html(answer) clean_html = cleaner.clean_html(answer)
clean_html = re.sub(r'</p>$', '', re.sub(r'^<p>', '', clean_html)) clean_html = re.sub(r'</p>$', '', re.sub(r'^<p>', '', clean_html))
except: except Exception:
clean_html = answer clean_html = answer
return clean_html return clean_html
......
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