diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-06-09 09:46:51 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-06-09 09:46:51 +0200 |
commit | e2eacb0d4ff09b3db6a6a42e20b59054320ed536 (patch) | |
tree | 46b468bfe56ec8bc61436014e8f5da0c284b1da6 | |
parent | 4b6cdca6fe064988494238001827de15d7d5709f (diff) | |
download | sonarqube-e2eacb0d4ff09b3db6a6a42e20b59054320ed536.tar.gz sonarqube-e2eacb0d4ff09b3db6a6a42e20b59054320ed536.zip |
SONAR-6624 add data-key for each metric
-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' }); }, |