mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 11:32:25 -05:00
Confirm Clan remove hero
This commit is contained in:
parent
1e688f1d61
commit
30d47621bf
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ module.exports = class ClanDetailsView extends RootView
|
||||||
@supermodel.addRequestResource( 'leave_clan', options).load()
|
@supermodel.addRequestResource( 'leave_clan', options).load()
|
||||||
|
|
||||||
onRemoveMember: (e) ->
|
onRemoveMember: (e) ->
|
||||||
|
return unless window.confirm("Remove Hero?")
|
||||||
if memberID = $(e.target).data('id')
|
if memberID = $(e.target).data('id')
|
||||||
options =
|
options =
|
||||||
url: "/db/clan/#{@clanID}/remove/#{memberID}"
|
url: "/db/clan/#{@clanID}/remove/#{memberID}"
|
||||||
|
|
Loading…
Reference in a new issue