Commit b4676c33 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

_Hacked_ in a better error message

Changed message to 'attaching the file failed' for all attachment errors
parent 1c2e7af6
...@@ -70,12 +70,12 @@ class @DropzoneInput ...@@ -70,12 +70,12 @@ class @DropzoneInput
pasteText response.link.markdown pasteText response.link.markdown
return return
error: (temp, errorMessage) -> error: (temp) ->
errorAlert = $(form).find('.error-alert') errorAlert = $(form).find('.error-alert')
checkIfMsgExists = errorAlert.children().length checkIfMsgExists = errorAlert.children().length
if checkIfMsgExists is 0 if checkIfMsgExists is 0
errorAlert.append divAlert errorAlert.append divAlert
$(".div-dropzone-alert").append btnAlert + errorMessage $(".div-dropzone-alert").append "#{btnAlert}Attaching the file failed."
return return
totaluploadprogress: (totalUploadProgress) -> totaluploadprogress: (totalUploadProgress) ->
......
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