From 98ed325e4afb8d3bac87db24be7861b03adeeb82 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 20 Jan 2013 02:26:11 +0100 Subject: [PATCH] Added notify after update. --- .../javascripts/app/controllers/_settings/area.js.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/app/controllers/_settings/area.js.coffee b/app/assets/javascripts/app/controllers/_settings/area.js.coffee index 172800bc4..cff6083ab 100644 --- a/app/assets/javascripts/app/controllers/_settings/area.js.coffee +++ b/app/assets/javascripts/app/controllers/_settings/area.js.coffee @@ -68,6 +68,12 @@ class App.SettingsAreaItem extends App.Controller @setting.save( success: => + App.Event.trigger 'notify', { + type: 'success' + msg: App.i18n.translateContent('Update successful!') + timeout: 1500 + } + # login check App.Auth.loginCheck() )