From: Stas Vilchik Date: Wed, 9 Apr 2014 09:57:51 +0000 (+0600) Subject: Remove focus from delete button X-Git-Tag: 4.3~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5cfdd08e9a9155bcac3f4ae99d0bb28bfd458957;p=sonarqube.git Remove focus from delete button --- diff --git a/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee b/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee index acf593f149f..fc23e91c479 100644 --- a/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee +++ b/sonar-server/src/main/coffee/quality-gate/views/quality-gate-detail-header-view.coffee @@ -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) ->