Sha256: 5b1417650985dcdd237e1f158e30c9664b373aaff763de0e652242924de9c596

Contents?: true

Size: 613 Bytes

Versions: 3

Compression:

Stored size: 613 Bytes

Contents

update_page_content(page, @node)
=begin
if @node.new_record?
  page.replace "#{params[:dom_id]}_form", :file => fullpath_from_template_url + "_form.erb"
else
  pos = params[:position] || :before
  ref = params[:reference] || "#{params[:dom_id]}_add"
  page.insert_html pos.to_sym, ref, :file => fullpath_from_template_url + ".erb"
  @node = @node.parent.new_child(:class => @node.class)
  page.replace "#{params[:dom_id]}_form", :file => fullpath_from_template_url + "_form.erb"
  if params[:done]
    page << params[:done]
  else
    page.toggle "#{params[:dom_id]}_form", "#{params[:dom_id]}_add"
  end
end
=end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zena-0.15.2 app/views/nodes/create.rjs
zena-0.15.1 app/views/nodes/create.rjs
zena-0.15.0 app/views/nodes/create.rjs