Added reload after commit.
This commit is contained in:
parent
29a08aa685
commit
4c9b1d5937
1 changed files with 4 additions and 3 deletions
|
@ -48,7 +48,7 @@ class App.SettingsAreaItem extends App.Controller
|
||||||
)
|
)
|
||||||
|
|
||||||
new App.ControllerForm(
|
new App.ControllerForm(
|
||||||
el: @el.find('#form-item'),
|
el: @el.find('.form-item'),
|
||||||
model: { configure_attributes: @configure_attributes, className: '' },
|
model: { configure_attributes: @configure_attributes, className: '' },
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
)
|
)
|
||||||
|
@ -73,6 +73,7 @@ class App.SettingsAreaItem extends App.Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
@setting['state'] = state
|
@setting['state'] = state
|
||||||
|
ui = @
|
||||||
@setting.save(
|
@setting.save(
|
||||||
success: =>
|
success: =>
|
||||||
|
|
||||||
|
@ -81,7 +82,7 @@ class App.SettingsAreaItem extends App.Controller
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful!')
|
||||||
timeout: 1500
|
timeout: 1500
|
||||||
}
|
}
|
||||||
|
ui.render()
|
||||||
# login check
|
# login check
|
||||||
App.Auth.loginCheck()
|
# App.Auth.loginCheck()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue