MINOR Added jstree related classes to Hierarchy->markingClasses()

This commit is contained in:
Ingo Schommer 2011-03-01 17:38:25 +13:00
parent a306ccb7ef
commit cc795c4326

View File

@ -212,9 +212,11 @@ class Hierarchy extends DataObjectDecorator {
public function markingClasses() {
$classes = '';
if(!$this->isExpanded()) {
$classes .= " unexpanded";
$classes .= " unexpanded jstree-closed";
}
if(!$this->isTreeOpened()) {
if($this->isTreeOpened()) {
if($this->numChildren() > 0) $classes .= " jstree-open";
} else {
$classes .= " closed";
}
return $classes;