diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-06-26 18:36:23 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-06-26 18:36:23 +0300 |
commit | 1b592f8c35062e50581cc49ff0e3bb28f50d4ef5 (patch) | |
tree | d488a5afd493adad8fc8025c985f4ef292390560 /app/assets/javascripts | |
parent | 0a73f6466aab01a7ea4f119c4a457fd79c5126c8 (diff) | |
parent | 3f4a54b698aa75cd6072e49d9adee453d293e4cc (diff) |
Merge branch 'avatar-upload' into 'master'
Bugfix for #48378 - Resetting value of input element to fix Chrome-specific issue
See merge request gitlab-org/gitlab-ce!20161
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/profile/gl_crop.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/profile/gl_crop.js b/app/assets/javascripts/profile/gl_crop.js index cc9ded789db..f641b23e519 100644 --- a/app/assets/javascripts/profile/gl_crop.js +++ b/app/assets/javascripts/profile/gl_crop.js @@ -47,7 +47,8 @@ import _ from 'underscore'; var _this; _this = this; this.fileInput.on('change', function(e) { - return _this.onFileInputChange(e, this); + _this.onFileInputChange(e, this); + this.value = null; }); this.pickImageEl.on('click', this.onPickImageClick); this.modalCrop.on('shown.bs.modal', this.onModalShow); |