app/controllers/runs_controller.rb
# called by observe_field of tree selection when tree selection is done and value of hidden field changed.
# "selected_entity" is name of field to have value(=designified node id).
called by observe_field of tree selection when tree selection is done and value of hidden field changed.
"selected_entity" is name of field to have value(=designified node id).
called by observe_field of tree selection when tree selection is done and value of hidden field changed . " selected_entity " is name of field to have value ( = designified node id ) .
def update_tree_select
    tree_select_div_id = params[:tree_select_div_id]
    root = Run.find_entity params[:locals][:root]
    selected_entity = Run.find_entity(params[:selected_entity])
    assert_time = transform_time_param_to_db_time(params[:locals][:assert_time])
    set_global_assert_time(assert_time)
    render :update do |page|
      page.replace_html tree_select_div_id,
         :partial => "shared/tree/selection",
         :locals  => params[:locals].merge(:root => root, :pre_selection => selected_entity)
    end
  end
def update_tree_select tree_select_div_id = params [ :tree_select_div_id ] root = Run . find_entity params [ :locals ] [ :root ] selected_entity = Run . find_entity ( params [ :selected_entity ] ) assert_time = transform_time_param_to_db_time ( params [ :locals ] [ :assert_time ] ) set_global_assert_time ( assert_time ) render :update do | page | page . replace_html tree_select_div_id , :partial => "shared/tree/selection" , :locals => params [ :locals ] . merge ( :root => root , :pre_selection => selected_entity ) end end
called by observe_field of tree selection when tree selection is done and value of hidden field changed.
called by observe_field of tree selection when tree selection is done and value of hidden field changed .