]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix small bugs
authorStas Vilchik <vilchiks@gmail.com>
Mon, 23 Jun 2014 04:51:21 +0000 (10:51 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 23 Jun 2014 04:51:21 +0000 (10:51 +0600)
sonar-server/src/main/coffee/component-viewer/header.coffee
sonar-server/src/main/coffee/dashboard/file-app.coffee

index 03a08c9954e4e7d4d2ba389a4b76d775e3b84abb..5af821c6bb268749fdf3282567ede1c7857dc230 100644 (file)
@@ -120,7 +120,8 @@ define [
         bar.html r
 
 
-    closeExtension: ->
+    closeExtension: (e) ->
+      e.preventDefault()
       @ui.expandedBar.html('').removeClass 'active'
 
 
index c005663cd5ca713f4179a42112ec062943e4b6fd..4ed8aa81d128f513ee92b5d9f7a6bc410a0535d5 100644 (file)
@@ -51,7 +51,8 @@ requirejs [
       if metricConf?
         activeHeaderTab = metricConf.tab
         activeHeaderItem = metricConf.item
-    viewer.open(window.fileKey).done ->
+    viewer.open window.fileKey
+    viewer.on 'loaded', ->
       if activeHeaderTab? && activeHeaderItem?
         viewer.state.set activeHeaderTab: activeHeaderTab, activeHeaderItem: activeHeaderItem
         viewer.headerView.render()