Avoid using FormData.set, Safari only has support for append.

This commit is contained in:
Paulo Reis 2016-07-26 15:54:58 +01:00
parent e7483ed9e5
commit 5349ea6ed8

View file

@ -20,13 +20,14 @@ define [
formData.append "Field#{ hintFieldAPIId }", hintId
formData.append "Field#{ reasonFieldAPIId }", feedbackOpt
formData.append "Field#{ reasonOtherFieldAPIId }", feedbackOtherVal
formData.append "idstamp", idStampVal
# Allow user to specify "other" without any extra details; an empty string
# would trigger an error submitting.
if feedbackOpt == feedbackOpts.OTHER and feedbackOtherVal == ""
formData.set "Field#{ reasonOtherFieldAPIId }", "#{ feedbackOpts.OTHER } empty"
formData.append "Field#{ reasonOtherFieldAPIId }", "#{ feedbackOpts.OTHER } empty"
else
formData.append "Field#{ reasonOtherFieldAPIId }", feedbackOtherVal
req =
method: 'POST'