MDL-11892 Propogate Fixes for 'calls to expand javascript' to SCORM 1.2, and 1.3...
authorpiers <piers>
Sat, 19 Jul 2008 00:25:36 +0000 (00:25 +0000)
committerpiers <piers>
Sat, 19 Jul 2008 00:25:36 +0000 (00:25 +0000)
mod/scorm/datamodels/scorm_13lib.php

index fc450bc..00d0f8b 100644 (file)
@@ -226,9 +226,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
           <script type="text/javascript">
           //<![CDATA[
               function expandCollide(which,list,item) {
-                                 var el = document.ids ? document.ids[list] : document.getElementById ? document.getElementById(list) : document.all[list];
+                  var el = document.ids ? document.ids[list] : document.getElementById ? document.getElementById(list) : document.all[list];
                   which = which.substring(0,(which.length));
-                                 var el2 = document.ids ? document.ids[which] : document.getElementById ? document.getElementById(which) : document.all[which];
+                  var el2 = document.ids ? document.ids[which] : document.getElementById ? document.getElementById(which) : document.all[which];
                   if (el.style.display != "none") {
                       el2.src = "'.$scormpixdir.'/plus.gif";
                       el.style.display=\'none\';