mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: add extra <span> DOM with 'jstree-foldericon' class for tree view of folders
This commit is contained in:
parent
66d0673b07
commit
92f3d62d70
@ -446,4 +446,14 @@ class Folder extends File {
|
||||
|
||||
return $classes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function getTreeTitle() {
|
||||
return $treeTitle = sprintf(
|
||||
"<span class=\"jstree-foldericon\"></span><span class=\"item\">%s</span>",
|
||||
Convert::raw2xml(str_replace(array("\n","\r"),"",$this->Title))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user