浏览代码

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

Yannick Warnier 17 年之前
父节点
当前提交
13c3546074
共有 1 个文件被更改,包括 2 次插入2 次删除
  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();?>';