]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5480 Make it possible to "un-choose" filters and selected line
authorStas Vilchik <vilchiks@gmail.com>
Wed, 30 Jul 2014 09:11:14 +0000 (11:11 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 30 Jul 2014 09:11:14 +0000 (11:11 +0200)
Really unset the highlighted line

server/sonar-web/src/main/coffee/component-viewer/source.coffee

index f0c17c7a127b64f29c1c7fa14c70a5d0b4e30097..ae4cab9277475dd67c0a44f02a91a561cb0b038a 100644 (file)
@@ -158,6 +158,7 @@ define [
       row = $(e.currentTarget).closest('.row')
       highlighted = row.is ".#{HIGHLIGHTED_ROW_CLASS}"
       @$(".#{HIGHLIGHTED_ROW_CLASS}").removeClass HIGHLIGHTED_ROW_CLASS
+      @highlightedLine = null
       unless highlighted
         row.addClass HIGHLIGHTED_ROW_CLASS
         @highlightedLine = row.data 'line-number'