Sha256: fb67310aa32b5e9ffefcec125230bdc603ee19976b82c48a9b9e50576aafe0b7

Contents?: true

Size: 709 Bytes

Versions: 11

Compression:

Stored size: 709 Bytes

Contents

module Netzke
  # TabPanel-based widget that wraps-up "configuration widgets" that each widget can define 
  # (along) with including the Plugins::ConfigurationTool tool.
  class ConfigurationPanel < TabPanel
    api :commit
    def commit(params)
      commit_data = ActiveSupport::JSON.decode params[:commit_data]
      commit_data.each_pair do |k,v|
        aggregatee_instance(k).commit(v)
      end
      {:reload_parent => true, :feedback => (@flash.empty? ? nil : @flash)}
    end
    
    def self.js_extend_properties
      {
        :reload_parent => <<-END_OF_JAVASCRIPT.l,
          function(){
            this.getParent().reload();
          }
        END_OF_JAVASCRIPT
      }
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
skozlov-netzke-basepack-0.5.1 lib/netzke/configuration_panel.rb
skozlov-netzke-basepack-0.5.2 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.8 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.7 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.6 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.5.1 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.5 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.4 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.3 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.1 lib/netzke/configuration_panel.rb
netzke-basepack-0.5.2 lib/netzke/configuration_panel.rb