]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix workspace toggling
authorStas Vilchik <vilchiks@gmail.com>
Mon, 16 Jun 2014 12:30:20 +0000 (18:30 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 16 Jun 2014 12:30:28 +0000 (18:30 +0600)
sonar-server/src/main/coffee/component-viewer/main.coffee

index 5f8bbe84eb5d12a6b8252bd71ba19ede1efd897b..aa19229a94af0542443e26bcf79d5b186785662a 100644 (file)
@@ -234,13 +234,15 @@ define [
     showWorkspace: (store = false) ->
       @settings.set 'workspace', true
       @storeSettings() if store
-      @render()
+      @$el.addClass 'component-viewer-workspace-enabled'
+      @workspaceView.render()
 
 
     hideWorkspace: (store = false) ->
       @settings.set 'workspace', false
       @storeSettings() if store
-      @render()
+      @$el.removeClass 'component-viewer-workspace-enabled'
+      @workspaceView.render()
 
 
     showAllLines: ->