Fixed page endless loops.
This commit is contained in:
parent
31c725864d
commit
acad651fef
2 changed files with 2 additions and 1 deletions
|
@ -51,6 +51,7 @@ class App.ProfileLanguage extends App.Controller
|
||||||
=>
|
=>
|
||||||
App.i18n.set( @locale )
|
App.i18n.set( @locale )
|
||||||
App.Event.trigger( 'ui:rerender' )
|
App.Event.trigger( 'ui:rerender' )
|
||||||
|
App.Event.trigger( 'ui:page:rerender' )
|
||||||
@notify(
|
@notify(
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent( 'Successfully!' )
|
msg: App.i18n.translateContent( 'Successfully!' )
|
||||||
|
|
|
@ -75,7 +75,7 @@ class App.Content extends App.Controller
|
||||||
|
|
||||||
# rerender view on ui:rerender event
|
# rerender view on ui:rerender event
|
||||||
App.Event.bind(
|
App.Event.bind(
|
||||||
'ui:rerender', =>
|
'ui:page:rerender', =>
|
||||||
controller( params )
|
controller( params )
|
||||||
'page'
|
'page'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue