Maintenance: Make ticket number options translatable.
(cherry picked from commit 0ac0de5c1df710aea543cae44b1aac202d376bf5)
This commit is contained in:
parent
321aa0ea4c
commit
08934daaf3
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ class App.SettingsAreaTicketNumber extends App.Controller
|
||||||
el = $(App.view("settings/#{preferences_setting}")(
|
el = $(App.view("settings/#{preferences_setting}")(
|
||||||
setting: setting
|
setting: setting
|
||||||
))
|
))
|
||||||
|
|
||||||
|
for form_entry in setting.options['form']
|
||||||
|
if form_entry['tag'] is 'boolean'
|
||||||
|
form_entry['translate'] = true
|
||||||
|
|
||||||
new App.ControllerForm(
|
new App.ControllerForm(
|
||||||
el: el.find('.js-formItem'),
|
el: el.find('.js-formItem'),
|
||||||
model: { configure_attributes: setting.options['form'], className: '' }
|
model: { configure_attributes: setting.options['form'], className: '' }
|
||||||
|
|
Loading…
Reference in a new issue