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