Sha256: bc603ecf7bc5ac81ea178524a803faccc1348d56b8c12b32bfea81845739f213
Contents?: true
Size: 458 Bytes
Versions: 35
Compression:
Stored size: 458 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) "jQuery('##{grid_id}').trigger('reloadGrid');" end end end
Version data entries
35 entries across 35 versions & 2 rubygems