From: Stas Vilchik Date: Mon, 23 Jun 2014 04:51:21 +0000 (+0600) Subject: SONAR-5209 Fix small bugs X-Git-Tag: 4.4-RC1~226 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be76801c0871d1f7c826461d99aa5f4068811dc9;p=sonarqube.git SONAR-5209 Fix small bugs --- diff --git a/sonar-server/src/main/coffee/component-viewer/header.coffee b/sonar-server/src/main/coffee/component-viewer/header.coffee index 03a08c9954e..5af821c6bb2 100644 --- a/sonar-server/src/main/coffee/component-viewer/header.coffee +++ b/sonar-server/src/main/coffee/component-viewer/header.coffee @@ -120,7 +120,8 @@ define [ bar.html r - closeExtension: -> + closeExtension: (e) -> + e.preventDefault() @ui.expandedBar.html('').removeClass 'active' diff --git a/sonar-server/src/main/coffee/dashboard/file-app.coffee b/sonar-server/src/main/coffee/dashboard/file-app.coffee index c005663cd5c..4ed8aa81d12 100644 --- a/sonar-server/src/main/coffee/dashboard/file-app.coffee +++ b/sonar-server/src/main/coffee/dashboard/file-app.coffee @@ -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()