Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cc795c43262d5e53bb88fedaad3ff5bcd6dfb482 1 parent a306ccb
@chillu chillu authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 core/model/Hierarchy.php
View
6 core/model/Hierarchy.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.