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

Method showPlayModal

app/views/ladder/LadderView.js:455–467  ·  view source on GitHub ↗
(teamID)

Source from the content-addressed store, hash-verified

453 }
454
455 showPlayModal (teamID) {
456 const session = ((() => {
457 const result = []
458 for (const s of Array.from(this.sessions.models)) {
459 if (s.get('team') === teamID) {
460 result.push(s)
461 }
462 }
463 return result
464 })())[0]
465 const modal = new LadderPlayModal({ league: this.league, leagueType: this.leagueType, tournament: this.tournamentId, course: this.course }, this.level, session, teamID)
466 return this.openModalView(modal)
467 }
468
469 onClickedLink (e) {
470 const link = $(e.target).closest('a').attr('href')

Callers 2

afterRenderMethod · 0.95
onClickPlayButtonMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected