]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5135 Hide form after bulk application
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 30 Jun 2014 09:47:55 +0000 (11:47 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 30 Jun 2014 09:48:12 +0000 (11:48 +0200)
sonar-server/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee

index a5107ffc48497514517901357aace98190ae3371..7a7b697c758f93db1d4f5acffb2badae70817df9 100644 (file)
@@ -15,6 +15,7 @@ define [
       modalError: '.modal-error'
       modalWarning: '.modal-warning'
       modalNotice: '.modal-notice'
+      modalField: '.modal-field'
       codingRulesSubmitBulkChange: '#coding-rules-submit-bulk-change'
       codingRulesCancelBulkChange: '#coding-rules-cancel-bulk-change'
       codingRulesCloseBulkChange: '#coding-rules-close-bulk-change'
@@ -79,6 +80,7 @@ define [
         url: "#{baseUrl}/api/qualityprofiles/#{wsAction}_rules"
         data: query
       .done (r) =>
+        @ui.modalField.hide()
         if (r.failed)
           @ui.modalWarning.show()
           @ui.modalWarning.html tp('coding_rules.bulk_change.warning', r.succeeded, r.failed)