Development

Changeset 33200

You must first sign up to be able to contribute.

Changeset 33200

Show
Ignore:
Timestamp:
11/11/11 15:48:20 (3 years ago)
Author:
chrodriguez
Message:

add support for root node

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/dcReloadedFormExtraPlugin/trunk/lib/widget/crWidgetFormJsTreeAjaxPropel.class.php

    r33190 r33200  
    5858    $this->addOption('peer_count_method', 'doCount');  
    5959    $this->addOption('peer_to_string_method', '__toString');  
     60    $this->addOption('root_node', null);  
    6061  } 
    6162 
     
    102103                node_id: n == -1? -1 : n.data("id"), 
    103104                peer_class: "%peer_class%", 
     105                root_node: %root_node%, 
    104106                peer_id_column: "%peer_id_column%", 
    105107                peer_parent_id_column: "%peer_parent_id_column%", 
     
    125127              "%peer_count_method%"         => $this->encode($this->getOption('peer_count_method')), 
    126128              "%peer_to_string_method%"     => $this->encode($this->getOption('peer_to_string_method')), 
     129              "%root_node%"                 => $this->getOption('root_node'), 
    127130            )); 
    128131  } 
  • plugins/dcReloadedFormExtraPlugin/trunk/modules/dc_ajax/actions/actions.class.php

    r33198 r33200  
    415415          case 'get_root': 
    416416          default: 
    417             $id = null
     417            $id = $request->getParameter('root_node', null)
    418418            break; 
    419419        }