app/controllers/miq_policy_controller.rb
# handle buttons pressed on the button bar
handle buttons pressed on the button bar
handle buttons pressed on the button bar
def button
    @edit = session[:edit]                                  
    @refresh_div = "main_div" 
    if params[:pressed] == "refresh_log"
      refresh_log
      return
    end
    if params[:pressed] == "collect_logs"
      collect_logs
      return
    end
    unless @refresh_partial 
      add_flash(_("Button not yet implemented"), :error)
      @refresh_partial = "layouts/flash_msg"
      @refresh_div = "flash_msg_div"
    end
  end
def button @edit = session [ :edit ] @refresh_div = "main_div" if params [ :pressed ] == "refresh_log" refresh_log return end if params [ :pressed ] == "collect_logs" collect_logs return end unless @refresh_partial add_flash ( _ ( "Button not yet implemented" ) , :error ) @refresh_partial = "layouts/flash_msg" @refresh_div = "flash_msg_div" end end
handle buttons pressed on the button bar
handle buttons pressed on the button bar
# Restore @edit for adv search box # Default div for button.rjs to refresh # if no button handler ran, show not implemented msg