Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed bug MDL-7516

  • Loading branch information...
commit 01b1fab67115670f02c7898729dcad60e5f200e7 1 parent 61d29b9
authored June 15, 2007

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  mod/scorm/datamodels/scorm_12lib.php
8  mod/scorm/datamodels/scorm_12lib.php
@@ -263,7 +263,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
263 263
                 if (isset($_COOKIE['hide:SCORMitem'.$nextsco->id])) {
264 264
                     $icon = 'plus';
265 265
                 }
266  
-                $result->toc .= '<a href="javascript:expandCollide(img'.$sublist.','.$sublist.','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$scormpixdir.'/'.$icon.'.gif" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
  266
+                $result->toc .= $result->toc .= '<a href="javascript:expandCollide(\'img'.$sublist.'\','.$sublist.','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$scormpixdir.'/'.$icon.'.gif" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
267 267
             } else if ($isvisible) {
268 268
                 $result->toc .= '<img src="'.$scormpixdir.'/spacer.gif" />';
269 269
             }
@@ -372,13 +372,13 @@ function expandCollide(which,list,item) {
372 372
                   var w3c=document.getElementById?true:false
373 373
                   var beg=nn?"document.ids.":w3c?"document.getElementById(":"document.all.";
374 374
                   var mid=w3c?").style":".style";
375  
-
  375
+                  which = which.substring(0,(which.length));
376 376
                   if (eval(beg+list+mid+".display") != "none") {
377  
-                      which.src = "'.$scormpixdir.'/plus.gif";
  377
+                      document.getElementById(which).src = "'.$scormpixdir.'/plus.gif";
378 378
                       eval(beg+list+mid+".display=\'none\';");
379 379
                       new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
380 380
                   } else {
381  
-                      which.src = "'.$scormpixdir.'/minus.gif";
  381
+                      document.getElementById(which).src = "'.$scormpixdir.'/minus.gif";
382 382
                       eval(beg+list+mid+".display=\'block\';");
383 383
                       new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
384 384
                   }

0 notes on commit 01b1fab

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