]> source.dussan.org Git - sonarqube.git/commitdiff
Remove focus from delete button
authorStas Vilchik <vilchiks@gmail.com>
Wed, 9 Apr 2014 09:57:51 +0000 (15:57 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 9 Apr 2014 09:58:00 +0000 (15:58 +0600)
sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee

index acf593f149f9def320dbebd51fb039a5f145ba0d..fc23e91c4793937c71a4b5692d6f639a0426d7a2 100644 (file)
@@ -17,10 +17,14 @@ define [
       'change': 'render'
 
 
+    ui:
+      deleteButton: '#quality-gate-delete'
+
+
     events:
       'click #quality-gate-rename': 'renameQualityGate'
       'click #quality-gate-copy': 'copyQualityGate'
-      'click #quality-gate-delete': 'deleteQualityGate'
+      'click @ui.deleteButton': 'deleteQualityGate'
       'click #quality-gate-set-as-default': 'setAsDefault'
       'click #quality-gate-unset-as-default': 'unsetAsDefault'
 
@@ -51,6 +55,8 @@ define [
           @hideSpinner()
         .done =>
           @options.app.deleteQualityGate @model.id
+      else
+        @ui.deleteButton.blur()
 
 
     changeDefault: (set) ->