Sha256: 93547ee2906895b00e58431f020a657263894bc57a1156f4f509fad3b4d7c259

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

if @cms_category.valid?
  if @cms_category.parent.blank?
    page.insert_html :bottom, 'root_categories', :partial => 'category', :locals => { :category => @cms_category, :item_type => params[:item_type] }
  else
    page.insert_html :bottom, dom_id(@cms_category.parent), :partial => 'category', :locals => { :category => @cms_category, :item_type => params[:item_type] }
  end
end

page.replace 'new_category', render(:partial => 'cms_admin/categories/new', :locals => {:item_type => params[:item_type]})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-0.0.18 app/views/cms_admin/categories/create.js.rjs