Commit 817c7dae1aa7e4d22191b0a199dd37642b8b830d

Authored by Diego Camarinha
Committed by Paulo Meireles
1 parent fbe3af8f

[mezuro] fixed project loading bug

plugins/mezuro/public/javascripts/project_content.js
@@ -28,10 +28,10 @@ function showProjectContentFor(state){ @@ -28,10 +28,10 @@ function showProjectContentFor(state){
28 28
29 function showProjectContentAfter(seconds){ 29 function showProjectContentAfter(seconds){
30 if (seconds > 0){ 30 if (seconds > 0){
31 - setProjectContent("Not ready. Trying again in " + seconds + " seconds");  
32 - setTimeout(function() { showProjectContentAfter(seconds - 1);}, 1000); 31 + alert("Not ready. Trying again in " + seconds + " seconds");
  32 + setTimeout(function() { showProjectContentAfter(seconds - 10);}, 10000);
33 } else { 33 } else {
34 - setProjectContent("Trying now..."); 34 + alert("Trying now...");
35 showProjectContent(); 35 showProjectContent();
36 } 36 }
37 } 37 }