]> source.dussan.org Git - sonarqube.git/commitdiff
Automatically select "modified lines" when select a period in the scm tab
authorStas Vilchik <vilchiks@gmail.com>
Wed, 23 Jul 2014 10:51:37 +0000 (12:51 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 23 Jul 2014 10:51:37 +0000 (12:51 +0200)
sonar-server/src/main/coffee/component-viewer/header/scm-header.coffee

index 07523ce8cf539440149172b8320cb90443ceb859..c132eea9f54efcfd00d1bfba8e4958e0585ef87d 100644 (file)
@@ -31,7 +31,7 @@ define [
         main: @options.main
         bottom: true
       popup.render()
-      popup.on 'change', (period) => @main.enablePeriod period
+      popup.on 'change', (period) => @main.enablePeriod period, '.js-filter-modified-lines'
 
 
     filterByModifiedLines: (e) ->