Sha256: 8d94ab80223bfab64056806376fa8e09af4af065aee1633ae6274eb60f85bb88

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

module ScrivitoSlickSliderWidget

  class SlickSliderWidgetController < CmsController

    layout false

    def add_new_panel
      widget = Obj.find(params[:obj]).widget_from_pool(params[:widget])
      widget.update(panels: widget.panels << SlickSliderPanelWidget.new())
      #TODO: check for success and return appropriate result
      render "slick_slider_widget/add_new_panel"
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrivito_slick_slider_widget-0.0.60 app/controllers/scrivito_slick_slider_widget/slick_slider_widget_controller.rb
scrivito_slick_slider_widget-0.0.3 app/controllers/scrivito_slick_slider_widget/slick_slider_widget_controller.rb
scrivito_slick_slider_widget-0.0.2 app/controllers/scrivito_slick_slider_widget/slick_slider_widget_controller.rb