[svn r11761] minor - fix a little display bug in the resource tree

skala
Julian Prud'homme 19 years ago
parent b1361aeb82
commit f2593f2141
  1. BIN
      main/img/nolines_minus.gif
  2. BIN
      main/img/nolines_plus.gif
  3. 2
      main/newscorm/dtree.js
  4. 2
      main/newscorm/learnpath.class.php

Binary file not shown.

Before

Width:  |  Height:  |  Size: 861 B

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 870 B

After

Width:  |  Height:  |  Size: 866 B

@ -695,7 +695,7 @@ if (!Array.prototype.pop) {
function testResources(id,img){
if(document.getElementById(id).style.display=='block'){
document.getElementById(id).style.display='none';
document.getElementById("img_"+id).src='../img/add.gif';
document.getElementById("img_"+id).src='../img/nolines_plus.gif';
}
else{
document.getElementById(id).style.display='block';

@ -7068,7 +7068,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
}
//It's a folder
else {
$return .= '<div><div style="margin-left:' . ($num * 15) . 'px;margin-right:5px;"><img style="cursor: pointer;" src="../img/add.gif" id="img_'.$value["id"].'" onclick="testResources(\''.$value["id"].'\',\'img_'.$value["id"].'\')"><img alt="" src="../img/lp_' . (($value['filetype'] == 'file') ? TOOL_DOCUMENT.'_file' : 'folder') . '.gif" title="" /><span onclick="testResources(\''.$value["id"].'\',\'img_'.$value["id"].'\')" style="cursor: pointer;" >'.$value['title'].'</span></div><div style="display: none;" id="'.$value['id'].'">';
$return .= '<div><div style="margin-left:' . ($num * 15) . 'px;margin-right:5px;"><img style="cursor: pointer;" src="../img/nolines_plus.gif" align="absmiddle" id="img_'.$value["id"].'" onclick="testResources(\''.$value["id"].'\',\'img_'.$value["id"].'\')"><img alt="" src="../img/lp_' . (($value['filetype'] == 'file') ? TOOL_DOCUMENT.'_file' : 'folder') . '.gif" title="" align="absmiddle" /><span onclick="testResources(\''.$value["id"].'\',\'img_'.$value["id"].'\')" style="cursor: pointer;" >'.$value['title'].'</span></div><div style="display: none;" id="'.$value['id'].'">';
array_shift($resources_array);
$return .= $this->write_resources_tree($value['path']);
$return .= "</div></div>\r\n";

Loading…
Cancel
Save