From 4c9b1d5937c1f9eb7549ccfcf46c7dbd64c59df5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 19 Aug 2013 23:01:15 +0200 Subject: [PATCH] Added reload after commit. --- .../javascripts/app/controllers/_settings/area.js.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_settings/area.js.coffee b/app/assets/javascripts/app/controllers/_settings/area.js.coffee index 1eee559b2..04bbf6352 100644 --- a/app/assets/javascripts/app/controllers/_settings/area.js.coffee +++ b/app/assets/javascripts/app/controllers/_settings/area.js.coffee @@ -48,7 +48,7 @@ class App.SettingsAreaItem extends App.Controller ) new App.ControllerForm( - el: @el.find('#form-item'), + el: @el.find('.form-item'), model: { configure_attributes: @configure_attributes, className: '' }, autofocus: false, ) @@ -73,6 +73,7 @@ class App.SettingsAreaItem extends App.Controller } @setting['state'] = state + ui = @ @setting.save( success: => @@ -81,7 +82,7 @@ class App.SettingsAreaItem extends App.Controller msg: App.i18n.translateContent('Update successful!') timeout: 1500 } - + ui.render() # login check - App.Auth.loginCheck() +# App.Auth.loginCheck() )