Răsfoiți Sursa

[svn r13598] Added apostrophes around item score to allow LMS to set value to '' by default as requested by SCORM

Yannick Warnier 17 ani în urmă
părinte
comite
13c3546074
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      main/newscorm/scorm_api.php

+ 2 - 2
main/newscorm/scorm_api.php

@@ -125,8 +125,8 @@ var commit = false ;
 
 //Strictly scorm variables
 var score=<?php echo $oItem->get_score();?>;
-var max=<?php echo $oItem->get_max();?>;
-var min=<?php echo $oItem->get_min();?>;
+var max='<?php echo $oItem->get_max();?>';
+var min='<?php echo $oItem->get_min();?>';
 var lesson_status='<?php echo $oItem->get_status();?>';
 var session_time='<?php echo $oItem->get_scorm_time('js');?>';
 var suspend_data = '<?php echo $oItem->get_suspend_data();?>';