]> source.dussan.org Git - sonarqube.git/commitdiff
highlight current selected file on the drilldown page
authorStas Vilchik <vilchiks@gmail.com>
Thu, 5 Feb 2015 15:40:36 +0000 (16:40 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 5 Feb 2015 15:40:36 +0000 (16:40 +0100)
server/sonar-web/src/main/js/drilldown/app.js

index 192c6ee867a20cfa11835eca081426e7d4a4e524..45ebac66d201aa1aaf70cce798d2352372039b05 100644 (file)
@@ -16,6 +16,8 @@ requirejs([
   App.addInitializer(function () {
     $('.js-drilldown-link').on('click', function (e) {
       e.preventDefault();
+      $(e.currentTarget).closest('table').find('.selected').removeClass('selected');
+      $(e.currentTarget).closest('tr').addClass('selected');
       var uuid = $(e.currentTarget).data('uuid'),
           viewer = new SourceViewer();
       App.viewerRegion.show(viewer);