Skip to content
Browse files

Removed a debug alert

  • Loading branch information...
1 parent 6d9c91c commit 5f4aacd3a9e882dae99fb7339c9de1fb2da833bb bobopinna committed Jul 1, 2004
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/scorm/api1_2.php
View
5 mod/scorm/api1_2.php
@@ -102,12 +102,13 @@ function LMSGetValue (param) {
function LMSSetValue (param,value) {
if (Initialized) {
//top.status="SET "+param+" = "+value;
- top.alert("SET "+param+" = "+value);
+ //top.alert("SET "+param+" = "+value);
switch (param) {
case "cmi.core.session_time":
//top.alert(typeof(value));
if (typeof(value) == "string") {
- var parsedtime = value.match(/[0-9]+/g);
+ var parsedtime = value.match(/[0-9]{2,4}/g);
+ //top.alert(parsedtime);
if (((parsedtime.length == 3) || (parsedtime.length == 4)) && (parsedtime[0]>=0) && (parsedtime[0]<=9999) && (parsedtime[1]>=0) && (parsedtime[1]<=59) && (parsedtime[2]>=0) && (parsedtime[2]<=59)) {
if ((parsedtime.length == 4) && (parsedtime[3]<=0) && (parsedtime[3]>=99)) {
errorCode = 405;

0 comments on commit 5f4aacd

Please sign in to comment.
Something went wrong with that request. Please try again.