diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-03-17 09:10:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 09:10:48 +0100 |
commit | de4365079bad2df3bdee2133576dc913ffbf1ab2 (patch) | |
tree | a522ccb952f0d37f454e8188e13b3dec3f731912 /server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js | |
parent | 6a03df65cc0c91a26150ea172a2c480e07326ea1 (diff) | |
download | sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.tar.gz sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.zip |
format code using prettier (#1774)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js b/server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js index f0cf82e916f..374909f56b4 100644 --- a/server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js +++ b/server/sonar-web/src/main/js/apps/custom-measures/list-item-view.js @@ -31,34 +31,33 @@ export default Marionette.ItemView.extend({ 'click .js-custom-measure-delete': 'onDeleteClick' }, - onRender () { + onRender() { this.$el.attr('data-id', this.model.id); this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' }); }, - onDestroy () { + onDestroy() { this.$('[data-toggle="tooltip"]').tooltip('destroy'); }, - onUpdateClick (e) { + onUpdateClick(e) { e.preventDefault(); this.updateCustomMeasure(); }, - onDeleteClick (e) { + onDeleteClick(e) { e.preventDefault(); this.deleteCustomMeasure(); }, - updateCustomMeasure () { + updateCustomMeasure() { new UpdateView({ model: this.model, collection: this.model.collection }).render(); }, - deleteCustomMeasure () { + deleteCustomMeasure() { new DeleteView({ model: this.model }).render(); } }); - |