mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -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
|
||||
div.sliders
|
||||
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')
|
||||
div.slider-cell
|
||||
label(for=group.humanized+"_saturation", data-i18n="wizard_settings.saturation") Saturation
|
||||
|
|
|
@ -26,11 +26,12 @@ module.exports = class SettingsView extends View
|
|||
|
||||
refreshPicturePane: =>
|
||||
h = $(@template(@getRenderData()))
|
||||
new_pane = $('#picture-pane', h)
|
||||
old_pane = $('#picture-pane')
|
||||
active = old_pane.hasClass('active')
|
||||
old_pane.replaceWith(new_pane)
|
||||
new_pane.addClass('active') if active
|
||||
newPane = $('#picture-pane', h)
|
||||
oldPane = $('#picture-pane')
|
||||
active = oldPane.hasClass('active')
|
||||
oldPane.replaceWith(newPane)
|
||||
newPane.i18n()
|
||||
newPane.addClass('active') if active
|
||||
|
||||
afterRender: ->
|
||||
super()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue