diff options
-rw-r--r-- | server/sonar-web/src/main/js/apps/metrics/list-item-view.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/metrics/list-item-view.js b/server/sonar-web/src/main/js/apps/metrics/list-item-view.js index 224ab4c700e..6328aea11d5 100644 --- a/server/sonar-web/src/main/js/apps/metrics/list-item-view.js +++ b/server/sonar-web/src/main/js/apps/metrics/list-item-view.js @@ -15,7 +15,9 @@ define([ }, onRender: function () { - this.$el.attr('data-id', this.model.id); + this.$el + .attr('data-id', this.model.id) + .attr('data-key', this.model.get('key')); this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' }); }, |