Sfoglia il codice sorgente

fix tye scorm - refs #2755

Alex Aragón 6 anni fa
parent
commit
9d2f24a74a
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      main/lp/scorm_api.php

+ 4 - 3
main/lp/scorm_api.php

@@ -337,9 +337,10 @@ function LMSInitialize() {
 
         logit_scorm('LMSInitialize() with params: '+log);
 
-        $("#tab-iframe").removeClass("iframe_"+olms.lms_item_type);
-        $("#tab-iframe").addClass("iframe_"+olms.lms_item_type);
-
+        if(olms.lms_item_type == 'sco'){
+            $("#tab-iframe").removeClass("tab-content");
+            $("#tab-iframe").addClass("tab-content iframe_"+olms.lms_item_type);
+        }
     if (olms.lms_lp_type == 1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document') {
             xajax_start_timer();
         }