diff options
author | elijah <elijah@riseup.net> | 2013-07-05 18:16:24 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-05 18:16:24 -0700 |
commit | dc98ad8c6445182d60b3f1909e0260ace6fbfca5 (patch) | |
tree | 00527737a38bdafcd2e175bb6caf5e30b3360de1 /help/app/controllers | |
parent | b2124020f123bf7a44b21555e6aefb5699bdcc21 (diff) |
tickets - replace input[type=submit] tags with button[type=submit] tags
Diffstat (limited to 'help/app/controllers')
-rw-r--r-- | help/app/controllers/tickets_controller.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb index 6fc4024..094612c 100644 --- a/help/app/controllers/tickets_controller.rb +++ b/help/app/controllers/tickets_controller.rb @@ -41,20 +41,18 @@ class TicketsController < ApplicationController end def update - if params[:commit] == t(:close) + if params[:commit] == 'close' @ticket.is_open = false @ticket.save redirect_to_tickets - elsif params[:commit] == t(:open) + elsif params[:commit] == 'open' @ticket.is_open = true @ticket.save redirect_to auto_ticket_path(@ticket) - elsif params[:commit] == t(:cancel) - redirect_to_tickets else @ticket.attributes = cleanup_ticket_params(params[:ticket]) - if params[:commit] == t(:reply_and_close) + if params[:commit] == 'reply_and_close' @ticket.close end |