From 3ef9c72a4c6616a185b8297ed12e7890ace639b6 Mon Sep 17 00:00:00 2001 From: jamal Date: Sat, 11 Oct 2014 18:27:45 -0400 Subject: [PATCH] Add .leave-gather to the command button so it disables the leave confirm dialog --- app/views/gathers/_status.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/gathers/_status.html.erb b/app/views/gathers/_status.html.erb index 12177c0..a47078f 100644 --- a/app/views/gathers/_status.html.erb +++ b/app/views/gathers/_status.html.erb @@ -9,7 +9,7 @@ <% end %> <%= form_tag "/gathers/captain/#{@gather.id}" do %> - <%= submit_tag (@gather.captain1 == @gatherer or @gather.captain2 == @gatherer) ? 'Stop Commanding' : 'Command a Team', class: 'button tiny' %> + <%= submit_tag (@gather.captain1 == @gatherer or @gather.captain2 == @gatherer) ? 'Stop Commanding' : 'Command a Team', class: 'button tiny leave-gather' %> <% end %> <%= link_to 'Leave Gather', @gatherer, confirm: 'Are you sure?', method: :delete, class: 'button tiny leave-gather' %>