Sha256: 6ce237bb4b143574df05781c856ddf48301e1351f4d5bd4112b2a2def853edbe

Contents?: true

Size: 644 Bytes

Versions: 28

Compression:

Stored size: 644 Bytes

Contents

class Admin::DialogsController < Admin::BaseController
  
  layout 'admin_dialog'
  
  def show
    unless (@dialog_type = params[:id]).blank?
      @submit_button_text = "Insert"
      
      url_params = params.reject {|key, value| key =~ /(action)|(controller)/}
      
      if @dialog_type.downcase.split("&")[0] == "image"
        @iframe_src = insert_admin_images_url(:dialog => true)
      elsif @dialog_type.downcase.split("&")[0] == "link"
        @iframe_src = link_to_admin_pages_dialogs_url(url_params)
      end
      
      render :layout => false#"admin_dialog"
      
    else
      render :nothing => true
    end
  end
  
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.12 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.11 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.10 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.9 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.8 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.7 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.6 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.5 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.4 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.3 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.2 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5.1 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.5 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.4.5 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.4.4 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.4.3 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.4.2 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.4.1 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.4 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb