Sha256: da53fb0f0e3ce0b83df0b7ae022fdebcf9768e33fb4b558143756a1f07fa1c88

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

class Skyline::ContentItemsController < Skyline::ApplicationController
  def new
    return unless request.xhr?
    render :update do |page|
      if params[:content_item_type].present?
        @content_item_class = params[:content_item_type].constantize
        page.replace_html("section-#{params[:guid]}-content-item-id", :partial => "content_item", :locals => {:guid => params[:guid], :sectionable => Skyline::Sections::ContentItemSection.new})
      else
        page.replace_html("section-#{params[:guid]}-content-item-id", :text => "")
        page << "var myFx = new Fx.Scroll(\"contentEditPanel\").toBottom();"        
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
skylinecms-3.1.0 app/controllers/skyline/content_items_controller.rb
westarete-skylinecms-3.0.8.20100329 app/controllers/skyline/content_items_controller.rb
westarete-skylinecms-3.0.8.20100330 app/controllers/skyline/content_items_controller.rb
skylinecms-3.0.8 app/controllers/skyline/content_items_controller.rb
skylinecms-3.0.7 app/controllers/skyline/content_items_controller.rb