diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-22 13:43:32 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-22 13:43:32 -0500 |
commit | 444e92f40083319a1282b01a6736c140b600e404 (patch) | |
tree | a17320157c98a6f9992bcbc5e9f95f0c2968bd4c | |
parent | d5479eb06235559a3cee4b9da68952b87b0cc1bf (diff) | |
download | gitlab-ce-444e92f40083319a1282b01a6736c140b600e404.tar.gz |
Clear original input after crop
This fixes the case when the user selects the same image consecutively. It failed because no 'change' event was fired.
-rw-r--r-- | app/assets/javascripts/gl_crop.js.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_crop.js.coffee b/app/assets/javascripts/gl_crop.js.coffee index a9bee3cab77..df9bfdfa6cc 100644 --- a/app/assets/javascripts/gl_crop.js.coffee +++ b/app/assets/javascripts/gl_crop.js.coffee @@ -105,6 +105,7 @@ class GitLabCrop @setBlob() @setPreview() @modalCrop.modal('hide') + @fileInput.val('') onActionBtnClick: (btn) -> data = $(btn).data() |