]> source.dussan.org Git - sonarqube.git/commitdiff
Fix the issue with loading big files in the issues drilldown
authorStas Vilchik <vilchiks@gmail.com>
Wed, 30 Jul 2014 08:51:22 +0000 (10:51 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 30 Jul 2014 08:51:22 +0000 (10:51 +0200)
sonar-server/src/main/coffee/drilldown/app.coffee

index 7cc6ba303a69c73f0cb74d25d0cc2d81715ce06a..0479473f54b99b6e59b728656bbf6753e0871d8e 100644 (file)
@@ -77,7 +77,9 @@ requirejs [
           viewer.render()
         else viewer.showAllLines()
 
-      viewer.open(key).done ->
+      viewer.open key
+      viewer.on 'loaded', ->
+        viewer.off 'loaded'
         if activeHeaderTab?
           viewer.headerView.enableBar(activeHeaderTab).done -> f()
         else f()