]> _ Git - fluidbook-html5.git/commitdiff
wip #2207 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Sep 2018 14:34:54 +0000 (16:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Sep 2018 14:34:54 +0000 (16:34 +0200)
js/libs/scorm/scorm.js

index d7574567e340351fbba36113cc48a2045270d5f2..c23a64c176320cda0ff6fc597828102876c0bff9 100644 (file)
@@ -127,15 +127,15 @@ function startScormTimer() {
 function scormComplete() {
     setScormValue('exit', 'suspend');
     setScormValue('status', "completed");
-    if (fluidbook.scorm.manageScore) {
+    if (!fluidbook.scorm.manageScore) {
         setScormValue('success_status', 'passed');
     }
     finishScorm();
-    setTimeout(function(){
+    setTimeout(function () {
         parent.close();
         top.close();
         window.close();
-    },1500);
+    }, 1500);
 }
 
 function getScormValue(elementName) {