Pārlūkot izejas kodu

adding debug to html

Eager Beaver 5 gadi atpakaļ
vecāks
revīzija
d30cdcbc41
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 7 4
      views/crfPortal.html

+ 7 - 4
views/crfPortal.html

@@ -47,8 +47,8 @@ div.d1 {text-align:center; width=400px; background-color:#e0e0e0;
 
 <script type="text/javascript">
 
-    document.getElementById("formStatus").value+="\nStarting";
-    window.onload = init();
+focument.getElementById("formStatus").value+="\nStarting";
+window.onload = init();
 
 
 
@@ -63,7 +63,9 @@ function init() {
 	generateHead(config,"debugAreaHead","debugAreaDiv","Debug info");
 	generateHead(config,"generalDataHead","generalDataDiv","General data");
 	generateHead(config,"pickFormHead","pickFormDiv","Select CRF");
-	
+
+	print(config,"Added generateHead");
+	//parameters should include
 	//parameters should include
 	//divName - place to render select entry table
 	//masterQuery - the master query that will collect al the data
@@ -174,7 +176,8 @@ function init() {
 	parFormStatus.filter.filters=new Object();
 	parFormStatus.filter.filters["visibilityLevel"]="crfEditor"; 
 
-		
+	print(config,"Adding sources");
+
 	par.vars["eudraCTNumber"]=sourceVar("EudraCTNumber","eudraCTNumber","EudraCTNumber");
 	par.vars["studyCoordinator"]=sourceVar("StudyCoordinator","studyCoordinator","StudyCoordinator");
 	par.vars["studySponsor"]=sourceVar("StudySponsor","studySponsor","StudySponsor");