summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee/component-viewer/source.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server/src/main/coffee/component-viewer/source.coffee')
-rw-r--r--sonar-server/src/main/coffee/component-viewer/source.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee
index e65396b7a77..e338385c399 100644
--- a/sonar-server/src/main/coffee/component-viewer/source.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/source.coffee
@@ -41,6 +41,7 @@ define [
'mouseleave .duplication-exists': 'duplicationMouseLeave'
'click .js-expand': 'expandBlock'
+ 'click .js-expand-all': 'expandAll'
initialize: ->
@@ -163,6 +164,10 @@ define [
@render()
+ expandAll: ->
+ @showBlocks.push from: 0, to: _.size @model.get 'source'
+ @render()
+
getLineCoverage: (line) ->
coverage = @model.get 'coverage'