frederic 3 years ago
parent
commit
f02b31d6f1
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Resources/public/js/scorm2004.js

+ 3
- 3
Resources/public/js/scorm2004.js View File

@@ -1054,14 +1054,14 @@ ScormApi.prototype.getSucessStatus =(function () {
1054 1054
 
1055 1055
 	// si le  cmi.scaled_passing_score est non definie (non initialisé) alors il faut retourner la valeur courante
1056 1056
 	// de cmi.sucess_status.
1057
-	if (this.cmi.scaled_passing_score == null)
1057
+	if (this.cmi.scaled_passing_score == "")
1058 1058
 	{
1059 1059
 		return this.cmi.success_status;
1060 1060
 	}
1061 1061
 
1062 1062
 	// sinon : si scaled_passing_score est definie et que le scaled.score n'as pas de valeur mise pas le sco  alors
1063 1063
 	// il faut retourner unkonwn.
1064
-	if (this.cmi.score.scaled == null || this.cmi.score.scaled == 0 )
1064
+	if (this.cmi.score.scaled == "" || this.cmi.score.scaled == 0 )
1065 1065
 	{
1066 1066
 		return this.cmi.success_status = 'unknown';
1067 1067
 	}
@@ -1077,7 +1077,7 @@ ScormApi.prototype.getSucessStatus =(function () {
1077 1077
 		return this.cmi.success_status = 'failed';
1078 1078
 	}
1079 1079
 
1080
-	return this.cmi.success_status = ' passed';
1080
+	return this.cmi.success_status = 'passed';
1081 1081
 });
1082 1082
 
1083 1083
 ScormApi.prototype.isWriteableInteractionValue = (function(param) {

Loading…
Cancel
Save