Changeset 33219
- Timestamp:
- 11/22/11 15:03:00 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/dcReloadedFormExtraPlugin/trunk/lib/widget/crWidgetFormJsTree.class.php
r33209 r33219 78 78 $this->addOption('prefix_tree_node_id', 'change_me'); 79 79 $this->addOption('show_value_callback', false); 80 $this->addOption('theme', 'classic'); 80 81 } 81 82 … … 182 183 $core = $this->getCoreOptions($value); 183 184 $plugins = $this->getOption('tree_plugins'); 184 return strtr("{core: %core%, plugins: %plugins%, json_data: %tree% , themes: { dots: %dots%, icons: %icons% }, ui: { select_limit: 1, initially_select: [ '%value%' ], selected_parent_close: false, selected_parent_open: false }, types: { types: %types% } }",array(185 return strtr("{core: %core%, plugins: %plugins%, json_data: %tree% , themes: { theme : '%theme%', dots: %dots%, icons: %icons% }, ui: { select_limit: 1, initially_select: [ '%value%' ], selected_parent_close: false, selected_parent_open: false }, types: { types: %types% } }",array( 185 186 '%core%' => $this->toJson($core), 186 187 '%plugins%' => empty($plugins)?'[ ]':$plugins, … … 190 191 '%value%' => $this->generateNodeId($value), 191 192 '%types%' => $this->getJsTreeTypeOptions(), 193 '%theme%' => $this->getOption('theme'), 192 194 )); 193 195 }