X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FTag%2FForm%2FTag.php;h=231fb43db0a49d36f794a8d62f39d9bed2be8e90;hb=35348e87945985be63814c13b72fb4250fc1d8b8;hp=55ccd7514f237ad7d9625e9dc4e8b5904a660b0c;hpb=88c31e45a3a47425615cee983725f47193aaf86b;p=civicrm-core.git diff --git a/CRM/Tag/Form/Tag.php b/CRM/Tag/Form/Tag.php index 55ccd7514f..231fb43db0 100644 --- a/CRM/Tag/Form/Tag.php +++ b/CRM/Tag/Form/Tag.php @@ -99,17 +99,6 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form { $tags = new CRM_Core_BAO_Tag(); $tree = $tags->getTree($this->_entityTable, TRUE); - - // let's not load jstree if there are not children. This also fixes blank - // display at the beginning of checkboxes - $loadJsTree = CRM_Utils_Array::retrieveValueRecursive($tree, 'children'); - $this->assign('loadjsTree', FALSE); - if (!empty($loadJsTree)) { - CRM_Core_Resources::singleton() - ->addScriptFile('civicrm', 'packages/jquery/plugins/jstree/jquery.jstree.js', 0, 'html-header', FALSE) - ->addStyleFile('civicrm', 'packages/jquery/plugins/jstree/themes/default/style.css', 0, 'html-header'); - $this->assign('loadjsTree', TRUE); - } $this->assign('tree', $tree); $this->assign('allTags', $allTags);