Fixed application of a few i18n tags in wizard/picture settings.

This commit is contained in:
Nick Winter 2014-02-23 12:31:41 -08:00
parent 11f742ff0f
commit 5b88b58a75
2 changed files with 7 additions and 6 deletions
app
templates/account
views/account

View file

@ -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

View file

@ -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()