MCPcopy Create free account
hub / github.com/codecombat/codecombat / onClickJoinClanButton

Method onClickJoinClanButton

app/views/ladder/LadderView.js:482–490  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

480 }
481
482 onClickJoinClanButton (e) {
483 if (me.isAnonymous()) { return } // Just follow the link
484 e.preventDefault()
485 e.stopImmediatePropagation()
486 const clanId = $(e.target).closest('a').data('clan-id')
487 const href = $(e.target).closest('a').attr('href')
488 $(e.target).text($.i18n.t('common.loading'))
489 return joinClan(clanId).then(() => document.location.href = href)
490 }
491
492 isAILeagueArena () { return _.find(utils.arenas, { slug: this.levelID }) }
493

Callers

nothing calls this directly

Calls 3

joinClanFunction · 0.85
isAnonymousMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected