app/controllers/skyline/content_items_controller.rb in skylinecms-3.1.0 vs app/controllers/skyline/content_items_controller.rb in skylinecms-3.2.0
- old
+ new
@@ -1,14 +1,8 @@
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
+ if params[:content_item_type].present?
+ @content_item_class = params[:content_item_type].constantize
+ end
end
end
\ No newline at end of file