Add .leave-gather to the command button so it disables the leave confirm dialog

This commit is contained in:
jamal 2014-10-11 18:27:45 -04:00
parent 0895072845
commit 3ef9c72a4c

View file

@ -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' %>