Confirm Clan remove hero

This commit is contained in:
Matt Lott 2015-04-23 14:33:13 -07:00
parent 1e688f1d61
commit 30d47621bf

View file

@ -220,6 +220,7 @@ module.exports = class ClanDetailsView extends RootView
@supermodel.addRequestResource( 'leave_clan', options).load()
onRemoveMember: (e) ->
return unless window.confirm("Remove Hero?")
if memberID = $(e.target).data('id')
options =
url: "/db/clan/#{@clanID}/remove/#{memberID}"