@gentle_alert("Answer saved, but not yet submitted.")
@gentle_alert(gettext"Answer saved, but not yet submitted.")
else
else
@errors_area.html(response.error)
@errors_area.html(response.error)
@save_button.attr("disabled",false)
@save_button.attr("disabled",false)
...
@@ -378,7 +395,12 @@ class @CombinedOpenEnded
...
@@ -378,7 +395,12 @@ class @CombinedOpenEnded
@gentle_alertresponse.error
@gentle_alertresponse.error
confirm_save_answer:(event)=>
confirm_save_answer:(event)=>
@save_answer(event)ifconfirm('Please confirm that you wish to submit your work. You will not be able to make any changes after submitting.')
###
Translators: This string appears in a confirmation box after one tries to submit
an openended problem
###
confirmation_text=gettext'Please confirm that you wish to submit your work. You will not be able to make any changes after submitting.'
@save_answer(event)ifconfirm(confirmation_text)
save_answer:(event)=>
save_answer:(event)=>
@$el.find(@oe_alert_sel).remove()
@$el.find(@oe_alert_sel).remove()
...
@@ -399,7 +421,7 @@ class @CombinedOpenEnded
...
@@ -399,7 +421,7 @@ class @CombinedOpenEnded
# Don't submit the file in the case of it being too large, deal with the error locally.
# Don't submit the file in the case of it being too large, deal with the error locally.
@submit_button.show()
@submit_button.show()
@submit_button.attr('disabled',false)
@submit_button.attr('disabled',false)
@gentle_alert"You are trying to upload a file that is too large for our system. Please choose a file under 2MB or paste a link to it into the answer box."
@gentle_alertgettext"You are trying to upload a file that is too large for our system. Please choose a file under 2MB or paste a link to it into the answer box."
return
return
fd=newFormData()
fd=newFormData()
...
@@ -422,14 +444,14 @@ class @CombinedOpenEnded
...
@@ -422,14 +444,14 @@ class @CombinedOpenEnded
@errors_area.html(@out_of_sync_message)
@errors_area.html(@out_of_sync_message)
keydown_handler:(event)=>
keydown_handler:(event)=>
#Previously, responses were submitted when hitting enter. Add in a modifier that ensures that ctrl+enter is needed.
#Previously, responses were submitted when hitting enter. Add in a modifier that ensures that ctrl+enter is needed.
@reset(event)ifconfirm('Are you sure you want to remove your previous response to this question?')
@reset(event)ifconfirm(gettext'Are you sure you want to remove your previous response to this question?')
reset:(event)=>
reset:(event)=>
event.preventDefault()
event.preventDefault()
...
@@ -522,9 +544,14 @@ class @CombinedOpenEnded
...
@@ -522,9 +544,14 @@ class @CombinedOpenEnded
@rebind()
@rebind()
@next_problem_button.hide()
@next_problem_button.hide()
if!response.allow_reset
if!response.allow_reset
@gentle_alert"Moved to next step."
@gentle_alertgettext"Moved to next step."
else
else
@gentle_alert"Your score did not meet the criteria to move to the next step."
###
Translators: this message appears when transitioning between openended grading
types (i.e. self assesment to peer assessment). Sometimes, if a student
did not perform well at one step, they cannot move on to the next one.
###
@gentle_alertgettext"Your score did not meet the criteria to move to the next step."
@show_combined_rubric_current()
@show_combined_rubric_current()
else
else
@errors_area.html(response.error)
@errors_area.html(response.error)
...
@@ -561,7 +588,7 @@ class @CombinedOpenEnded
...
@@ -561,7 +588,7 @@ class @CombinedOpenEnded
@$(@file_upload_preview_sel).hide()
@$(@file_upload_preview_sel).hide()
@$(@file_upload_box_sel).change@preview_image
@$(@file_upload_box_sel).change@preview_image
else
else
@gentle_alert'File uploads are required for this question, but are not supported in this browser. Try the newest version of google chrome. Alternatively, if you have uploaded the image to the web, you can paste a link to it into the answer box.'
@gentle_alertgettext'File uploads are required for this question, but are not supported in your browser. Try the newest version of Google Chrome. Alternatively, if you have uploaded the image to another website, you can paste a link to it into the answer box.'
hide_file_upload:=>
hide_file_upload:=>
if@accept_file_upload=="True"
if@accept_file_upload=="True"
...
@@ -582,12 +609,20 @@ class @CombinedOpenEnded
...
@@ -582,12 +609,20 @@ class @CombinedOpenEnded
collapse_question:(event)=>
collapse_question:(event)=>
@prompt_container.slideToggle()
@prompt_container.slideToggle()
@prompt_container.toggleClass('open')
@prompt_container.toggleClass('open')
if@question_header.text()=="Hide Question"
if@prompt_container.hasClass('open')
new_text="Show Question"
###
Logger.log'oe_hide_question',{location:@location}
Translators: "Show Question" is some text that, when clicked, shows a question's
else
content that had been hidden
###
new_text=gettext"Show Question"
Logger.log'oe_show_question',{location:@location}
Logger.log'oe_show_question',{location:@location}
new_text="Hide Question"
else
###
Translators: "Hide Question" is some text that, when clicked, hides a question's
FILE_NOT_FOUND_IN_RESPONSE_MESSAGE="We could not find a file in your submission. Please try choosing a file or pasting a link to your file into the answer box."
ERROR_SAVING_FILE_MESSAGE="We are having trouble saving your file. Please try another file or paste a link to your file into the answer box."