From acad651fefb93e661c2ccd5d0c0cd311a212d808 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 13 Feb 2013 00:17:44 +0100 Subject: [PATCH] Fixed page endless loops. --- .../javascripts/app/controllers/_profile/language.js.coffee | 1 + .../javascripts/app/lib/app_post/interface_handle.js.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_profile/language.js.coffee b/app/assets/javascripts/app/controllers/_profile/language.js.coffee index dbeebf6b9..8759a9d1c 100644 --- a/app/assets/javascripts/app/controllers/_profile/language.js.coffee +++ b/app/assets/javascripts/app/controllers/_profile/language.js.coffee @@ -51,6 +51,7 @@ class App.ProfileLanguage extends App.Controller => App.i18n.set( @locale ) App.Event.trigger( 'ui:rerender' ) + App.Event.trigger( 'ui:page:rerender' ) @notify( type: 'success' msg: App.i18n.translateContent( 'Successfully!' ) diff --git a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee index c282cbef8..a0e0bb8af 100644 --- a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee @@ -75,7 +75,7 @@ class App.Content extends App.Controller # rerender view on ui:rerender event App.Event.bind( - 'ui:rerender', => + 'ui:page:rerender', => controller( params ) 'page' )