mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Fixed bug MDL-7516
This commit is contained in:
parent
61d29b99d8
commit
01b1fab671
1 changed files with 4 additions and 4 deletions
|
@ -263,7 +263,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
||||||
if (isset($_COOKIE['hide:SCORMitem'.$nextsco->id])) {
|
if (isset($_COOKIE['hide:SCORMitem'.$nextsco->id])) {
|
||||||
$icon = 'plus';
|
$icon = 'plus';
|
||||||
}
|
}
|
||||||
$result->toc .= '<a href="javascript:expandCollide(img'.$sublist.','.$sublist.','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$scormpixdir.'/'.$icon.'.gif" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
$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>';
|
||||||
} else if ($isvisible) {
|
} else if ($isvisible) {
|
||||||
$result->toc .= '<img src="'.$scormpixdir.'/spacer.gif" />';
|
$result->toc .= '<img src="'.$scormpixdir.'/spacer.gif" />';
|
||||||
}
|
}
|
||||||
|
@ -372,13 +372,13 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
||||||
var w3c=document.getElementById?true:false
|
var w3c=document.getElementById?true:false
|
||||||
var beg=nn?"document.ids.":w3c?"document.getElementById(":"document.all.";
|
var beg=nn?"document.ids.":w3c?"document.getElementById(":"document.all.";
|
||||||
var mid=w3c?").style":".style";
|
var mid=w3c?").style":".style";
|
||||||
|
which = which.substring(0,(which.length));
|
||||||
if (eval(beg+list+mid+".display") != "none") {
|
if (eval(beg+list+mid+".display") != "none") {
|
||||||
which.src = "'.$scormpixdir.'/plus.gif";
|
document.getElementById(which).src = "'.$scormpixdir.'/plus.gif";
|
||||||
eval(beg+list+mid+".display=\'none\';");
|
eval(beg+list+mid+".display=\'none\';");
|
||||||
new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
|
new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
|
||||||
} else {
|
} else {
|
||||||
which.src = "'.$scormpixdir.'/minus.gif";
|
document.getElementById(which).src = "'.$scormpixdir.'/minus.gif";
|
||||||
eval(beg+list+mid+".display=\'block\';");
|
eval(beg+list+mid+".display=\'block\';");
|
||||||
new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
|
new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue