mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-29 23:43:51 -04:00
Fixed application of a few i18n tags in wizard/picture settings.
This commit is contained in:
parent
11f742ff0f
commit
5b88b58a75
2 changed files with 7 additions and 6 deletions
app
|
@ -8,7 +8,7 @@ canvas#tinting-display(width=200, height=200).img-rounded
|
||||||
span(data-i18n='wizard_settings.' + group.dasherized)= group.humanized
|
span(data-i18n='wizard_settings.' + group.dasherized)= group.humanized
|
||||||
div.sliders
|
div.sliders
|
||||||
div.slider-cell
|
div.slider-cell
|
||||||
label(for=group.humanized+"_hue", data-i18n="wizard_settigs.hue") Hue
|
label(for=group.humanized+"_hue", data-i18n="wizard_settings.hue") Hue
|
||||||
.selector(id=group.humanized+"_hue", name=group.name+'.hue', data-key='hue')
|
.selector(id=group.humanized+"_hue", name=group.name+'.hue', data-key='hue')
|
||||||
div.slider-cell
|
div.slider-cell
|
||||||
label(for=group.humanized+"_saturation", data-i18n="wizard_settings.saturation") Saturation
|
label(for=group.humanized+"_saturation", data-i18n="wizard_settings.saturation") Saturation
|
||||||
|
|
|
@ -26,11 +26,12 @@ module.exports = class SettingsView extends View
|
||||||
|
|
||||||
refreshPicturePane: =>
|
refreshPicturePane: =>
|
||||||
h = $(@template(@getRenderData()))
|
h = $(@template(@getRenderData()))
|
||||||
new_pane = $('#picture-pane', h)
|
newPane = $('#picture-pane', h)
|
||||||
old_pane = $('#picture-pane')
|
oldPane = $('#picture-pane')
|
||||||
active = old_pane.hasClass('active')
|
active = oldPane.hasClass('active')
|
||||||
old_pane.replaceWith(new_pane)
|
oldPane.replaceWith(newPane)
|
||||||
new_pane.addClass('active') if active
|
newPane.i18n()
|
||||||
|
newPane.addClass('active') if active
|
||||||
|
|
||||||
afterRender: ->
|
afterRender: ->
|
||||||
super()
|
super()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue