[svn r13204] Small additional fixes

skala
Yannick Warnier 19 years ago
parent 5adbf695e7
commit 26cc443a7c
  1. 2
      main/exercice/export/scorm/scorm_classes.php
  2. 5
      main/exercice/export/scorm/scorm_export.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

@ -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";

Loading…
Cancel
Save