ENHANCEMENT: add extra <span> DOM with 'jstree-foldericon' class for tree view of folders

This commit is contained in:
Normann Lou 2012-04-26 11:42:56 +12:00 committed by Ingo Schommer
parent 66d0673b07
commit 92f3d62d70

View File

@ -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))
);
}
}