summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-06-28 19:09:35 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-06-30 14:49:56 +0100
commitb4676c3337d656bcd8c14edd011b832b6b7ee7e3 (patch)
tree43d20b27f97412e0981d7ff57fc8c3a1de360974
parent1c2e7af6afa4be48c4d95e3b5de8005746db9bc7 (diff)
downloadgitlab-ce-19161-non-helpful-flash-message-when-attaching-file-fails.tar.gz
Changed message to 'attaching the file failed' for all attachment errors
-rw-r--r--app/assets/javascripts/dropzone_input.js.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/dropzone_input.js.coffee b/app/assets/javascripts/dropzone_input.js.coffee
index e2194589b38..665246e2a7d 100644
--- a/app/assets/javascripts/dropzone_input.js.coffee
+++ b/app/assets/javascripts/dropzone_input.js.coffee
@@ -70,12 +70,12 @@ class @DropzoneInput
pasteText response.link.markdown
return
- error: (temp, errorMessage) ->
+ error: (temp) ->
errorAlert = $(form).find('.error-alert')
checkIfMsgExists = errorAlert.children().length
if checkIfMsgExists is 0
errorAlert.append divAlert
- $(".div-dropzone-alert").append btnAlert + errorMessage
+ $(".div-dropzone-alert").append "#{btnAlert}Attaching the file failed."
return
totaluploadprogress: (totalUploadProgress) ->