Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16371)
+++ schedule/Module/calendar.php	(revision 16372)
@@ -110,7 +110,7 @@
 							var T = [];
 							var src = 0;
-							while(src<source.length)
+							while(src < source.length)
 							{
-								document.getElementById('data').innerHTML=source.length+""+src;
+								
 								if (window.XMLHttpRequest)
 								  {// code for IE7+, Firefox, Chrome, Opera, Safari
@@ -142,4 +142,5 @@
 								xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[src])+"&time="+year+"-"+month+"-"+day,true);
 								xmlhttp.send();
+								document.getElementById('data').innerHTML=source.length+""+src;
 								src++;
 							}
