mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
"MDL-13766, make folder in treeview looks different from the files"
This commit is contained in:
parent
13daf6a2d6
commit
19a10884c6
@ -872,7 +872,6 @@ _client.viewthumb = function(ds){
|
||||
if(_client.ds.dynload) {
|
||||
// TODO: get file list dymanically
|
||||
}else{
|
||||
//_client.test(this.ds);
|
||||
_client.viewthumb(this.ds);
|
||||
}
|
||||
});
|
||||
@ -886,6 +885,9 @@ _client.viewthumb = function(ds){
|
||||
_client.viewmode = 1;
|
||||
}
|
||||
_client.buildtree = function(node, level){
|
||||
if(node.children){
|
||||
node.title = '<i><u>'+node.title+'</u></i>';
|
||||
}
|
||||
var info = {label:node.title, title:"$strdate"+node.date+' '+'$strsize'+node.size};
|
||||
var tmpNode = new YAHOO.widget.TextNode(info, level, false);
|
||||
var tooltip = new YAHOO.widget.Tooltip(tmpNode.labelElId, {
|
||||
@ -894,7 +896,6 @@ _client.buildtree = function(node, level){
|
||||
tmpNode.value = node.source;
|
||||
if(node.children){
|
||||
tmpNode.isLeaf = false;
|
||||
tmpNode.subfolder = node.children;
|
||||
if (node.path) {
|
||||
tmpNode.path = node.path;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user