()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected