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

Method afterRender

app/views/CommunityView.js:23–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22
23 afterRender () {
24 super.afterRender()
25 this.$el.find('.contribute-classes a').each(function () {
26 const characterClass = $(this).attr('href').split('/')[2]
27 const title = $.i18n.t(`classes.${characterClass}_title`)
28 const titleDescription = $.i18n.t(`classes.${characterClass}_title_description`)
29 const summary = $.i18n.t(`classes.${characterClass}_summary`)
30 const explanation = `<h4>${title} ${titleDescription}</h4>${summary}`
31 return $(this).find('img').popover({ placement: 'top', trigger: 'hover', container: 'body', content: explanation, html: true })
32 })
33
34 return this.$el.find('.logo-row img').each(function () {
35 return $(this).popover({ placement: 'top', trigger: 'hover', container: 'body' })
36 })
37 }
38 }
39 CommunityView.initClass()
40 return CommunityView

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected