Fixed page endless loops.

This commit is contained in:
Martin Edenhofer 2013-02-13 00:17:44 +01:00
parent 31c725864d
commit acad651fef
2 changed files with 2 additions and 1 deletions

View file

@ -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!' )

View file

@ -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'
)