mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
fad9d0a757
According to a comment now deleted, we had auto reload delay 300ms for race conditions, mainly onCompile tweaking source map file sourceMappingURL values. That only happens in production now, though, so let's try removing it for development. Original comment added:5104f0a1e7
Michael deleted it :(6d7864c415
21 lines
842 B
CoffeeScript
21 lines
842 B
CoffeeScript
RootView = require 'views/core/RootView'
|
|
template = require 'templates/community-view'
|
|
|
|
module.exports = class CommunityView extends RootView
|
|
id: 'community-view'
|
|
template: template
|
|
|
|
afterRender: ->
|
|
super()
|
|
ajdfas()
|
|
|
|
@$el.find('.contribute-classes a').each ->
|
|
characterClass = $(@).attr('href').split('/')[2]
|
|
title = $.i18n.t("classes.#{characterClass}_title")
|
|
titleDescription = $.i18n.t("classes.#{characterClass}_title_description")
|
|
summary = $.i18n.t("classes.#{characterClass}_summary")
|
|
explanation = "<h4>#{title} #{titleDescription}</h4>#{summary}"
|
|
$(@).find('img').popover(placement: 'top', trigger: 'hover', container: 'body', content: explanation, html: true)
|
|
|
|
@$el.find('.logo-row img').each ->
|
|
$(@).popover(placement: 'top', trigger: 'hover', container: 'body')
|