From 768a9f68bf1ae0b27c30fa3269381e7df16a99f2 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 28 Jul 2016 10:17:08 +0200 Subject: SONAR-7918 display spinner --- server/sonar-web/src/main/js/components/common/modal-form.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/sonar-web/src/main/js/components') diff --git a/server/sonar-web/src/main/js/components/common/modal-form.js b/server/sonar-web/src/main/js/components/common/modal-form.js index 939cf8b7407..df9f32a1fe2 100644 --- a/server/sonar-web/src/main/js/components/common/modal-form.js +++ b/server/sonar-web/src/main/js/components/common/modal-form.js @@ -81,6 +81,14 @@ export default ModalView.extend({ if (this.disabledFields != null) { this.disabledFields.prop('disabled', false); } + }, + + showSpinner () { + this.$('.js-modal-spinner').removeClass('hidden'); + }, + + hideSpinner () { + this.$('.js-modal-spinner').addClass('hidden'); } }); -- cgit v1.2.3