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

Method onClickedLink

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

Source from the content-addressed store, hash-verified

467 }
468
469 onClickedLink (e) {
470 const link = $(e.target).closest('a').attr('href')
471 if (link && /#rules$/.test(link)) {
472 this.$el.find('a[href="#rules"]').tab('show')
473 }
474 if (link && /#prizes/.test(link)) {
475 this.$el.find('a[href="#prizes"]').tab('show')
476 }
477 if (link && /#winners/.test(link)) {
478 return this.$el.find('a[href="#winners"]').tab('show')
479 }
480 }
481
482 onClickJoinClanButton (e) {
483 if (me.isAnonymous()) { return } // Just follow the link

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected