Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-06-26 18:36:23 +0300
committerMike Greiling <mike@pixelcog.com>2018-06-26 18:36:23 +0300
commit1b592f8c35062e50581cc49ff0e3bb28f50d4ef5 (patch)
treed488a5afd493adad8fc8025c985f4ef292390560 /app/assets/javascripts/profile
parent0a73f6466aab01a7ea4f119c4a457fd79c5126c8 (diff)
parent3f4a54b698aa75cd6072e49d9adee453d293e4cc (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/profile')
-rw-r--r--app/assets/javascripts/profile/gl_crop.js3
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);