mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Added jstree related classes to Hierarchy->markingClasses()
This commit is contained in:
parent
a306ccb7ef
commit
cc795c4326
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user