Sha256: 52b3d670d01eaaea7ea8c3121f0029924365a80ebb55b064f5dc31dad05a6ce0

Contents?: true

Size: 453 Bytes

Versions: 7

Compression:

Stored size: 453 Bytes

Contents

module ActionController
  class Base
    
    def render_refresh_grid
      render :js => refresh_grid("#{params[:controller]}_table")
    end
    
    def render_close_dialog_and_refresh_grid
      render :js => close_dialog("#{params["controller"]}_#{params["action"]}_dialog")+refresh_grid("#{params[:controller]}_table")
    end
    
    private
  
    def refresh_grid(grid_id)
      "$('##{grid_id}').trigger('reloadGrid');"
    end    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kosmas58-compass-jquery-plugin-0.1.8.1 lib/jquery/secret_sauce/controller/ui_grid_controls.rb
kosmas58-compass-jquery-plugin-0.1.8.2 lib/jquery/secret_sauce/controller/ui_grid_controls.rb
kosmas58-compass-jquery-plugin-0.1.8 lib/jquery/secret_sauce/controller/ui_grid_controls.rb
kosmas58-compass-jquery-plugin-0.2.0.1 lib/jquery/secret_sauce/controller/ui_grid_controls.rb
kosmas58-compass-jquery-plugin-0.2.0.3 lib/jquery/secret_sauce/controller/ui_grid_controls.rb
kosmas58-compass-jquery-plugin-0.2.0 lib/jquery/secret_sauce/controller/ui_grid_controls.rb
kosmas58-compass-jquery-plugin-0.2.2.0 lib/jquery/secret_sauce/controller/ui_grid_controls.rb