Browse Source

[svn r13204] Small additional fixes

Yannick Warnier 17 years ago
parent
commit
26cc443a7c

+ 1 - 1
main/exercice/export/scorm/scorm_classes.php

@@ -389,7 +389,7 @@ class ScormAnswerMatching extends Answer
 				$s.="</td>\n</tr>\n";
 	
 				$jstmp  .= $cpt2.',';
-				$jstmpc .= '['.$cpt2.','.$Select[$cpt2]['Lettre'].'],';
+				$jstmpc .= '['.$cpt2.',\''.$Select[$cpt2]['Lettre'].'\'],';
 				$cpt2++;
 	
 				// if the left side of the "matching" has been completely shown

+ 3 - 2
main/exercice/export/scorm/scorm_export.php

@@ -149,7 +149,7 @@ class ScormAssessmentItem
             	addEvent(my_button,\'click\',checkAnswers,false);
             	//addEvent(my_button,\'change\',checkAnswers,false);
             	addEvent(window,\'unload\',unloadPage,false);
-            }'."\n";
+            }'."\n\n";
 		
 		$js .= '';
 		//$js .= 'addEvent(window,\'load\',loadPage,false);'."\n";
@@ -302,6 +302,7 @@ class ScormSection
 	 */
 	function common_js()
 	{
+		$js = "\n";
 		$js .= file_get_contents('../plugin/hotspot/JavaScriptFlashGateway.js');
 		$js .= file_get_contents('../plugin/hotspot/hotspot.js');
 		$js .=	"<!--
@@ -411,7 +412,7 @@ class ScormSection
 							}
 						}
 					}
-					// -->";
+					// -->\n\n";
 		$js .= file_get_contents('../newscorm/js/api_wrapper.js');
 		$js .= 'var questions = new Array();' . "\n";
 		$js .= 'var questions_answers = new Array();' . "\n";