Skip to content

Commit

Permalink
MINOR Added jstree related classes to Hierarchy->markingClasses()
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 22, 2011
1 parent a306ccb commit cc795c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/model/Hierarchy.php
Expand Up @@ -212,9 +212,11 @@ protected function markingFinished($numChildrenMethod = "numChildren") {
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;
Expand Down

0 comments on commit cc795c4

Please sign in to comment.