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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-09 03:10:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-09 03:10:20 +0300
commitbf5cf27dfbe4e4cfb58d46cea9f14b81f5559fb5 (patch)
tree353aec9f04b3fe50147adff787fbfe77b419d4fd /app/assets/javascripts/profile
parent9882aeb510f9e3125a6451eb08681ea9d90dd5e2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/profile')
-rw-r--r--app/assets/javascripts/profile/gl_crop.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/profile/gl_crop.js b/app/assets/javascripts/profile/gl_crop.js
index afc78cbe78a..722f7d467a2 100644
--- a/app/assets/javascripts/profile/gl_crop.js
+++ b/app/assets/javascripts/profile/gl_crop.js
@@ -114,7 +114,9 @@ import { loadCSSFile } from '../lib/utils/css_utils';
}
onModalHide() {
- return this.modalCropImg.attr('src', '').cropper('destroy');
+ this.modalCropImg.attr('src', '').cropper('destroy');
+ const modalElement = document.querySelector('.modal-profile-crop');
+ if (modalElement) modalElement.remove();
}
onUploadImageBtnClick(e) {