diff options
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/coding-rules/views/coding-rules-detail-quality-profile-view.js')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/coding-rules/views/coding-rules-detail-quality-profile-view.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/coding-rules/views/coding-rules-detail-quality-profile-view.js b/sonar-server/src/main/webapp/javascripts/coding-rules/views/coding-rules-detail-quality-profile-view.js index 4cb28435c39..7ba3234d502 100644 --- a/sonar-server/src/main/webapp/javascripts/coding-rules/views/coding-rules-detail-quality-profile-view.js +++ b/sonar-server/src/main/webapp/javascripts/coding-rules/views/coding-rules-detail-quality-profile-view.js @@ -18,6 +18,7 @@ CodingRulesDetailQualityProfilesView.prototype.template = getTemplate('#coding-rules-detail-quality-profile-template'); CodingRulesDetailQualityProfilesView.prototype.ui = { + update: '.coding-rules-detail-quality-profile-update', severitySelect: '.coding-rules-detail-quality-profile-severity', note: '.coding-rules-detail-quality-profile-note', noteForm: '.coding-rules-detail-quality-profile-note-form', @@ -34,7 +35,9 @@ 'click @ui.noteEdit': 'editNote', 'click @ui.noteDelete': 'deleteNote', 'click @ui.noteCancel': 'cancelNote', - 'click @ui.noteSubmit': 'submitNote' + 'click @ui.noteSubmit': 'submitNote', + 'change .coding-rules-detail-parameters select': 'enableUpdate', + 'keyup .coding-rules-detail-parameters input': 'enableUpdate' }; CodingRulesDetailQualityProfilesView.prototype.editNote = function() { @@ -74,6 +77,10 @@ }); }; + CodingRulesDetailQualityProfilesView.prototype.enableUpdate = function() { + return this.ui.update.prop('disabled', false); + }; + CodingRulesDetailQualityProfilesView.prototype.onRender = function() { var format; this.ui.noteForm.hide(); |