Small layout improvement.
This commit is contained in:
parent
fcee6e7f99
commit
fcf4a2d30f
1 changed files with 6 additions and 6 deletions
|
@ -48,13 +48,13 @@ class Index extends App.Controller
|
||||||
|
|
||||||
success: (data, status, xhr) =>
|
success: (data, status, xhr) =>
|
||||||
App.User.full(
|
App.User.full(
|
||||||
App.Session.get( 'id' ),
|
App.Session.get('id'),
|
||||||
=>
|
=>
|
||||||
App.i18n.set( @locale )
|
App.i18n.set(@locale)
|
||||||
App.Event.trigger( 'ui:rerender' )
|
App.Event.trigger('ui:rerender')
|
||||||
@notify(
|
@notify(
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent( 'Successfully!' )
|
msg: App.i18n.translateContent('Successfully!')
|
||||||
)
|
)
|
||||||
,
|
,
|
||||||
true
|
true
|
||||||
|
@ -62,10 +62,10 @@ class Index extends App.Controller
|
||||||
|
|
||||||
error: (xhr, status, error) =>
|
error: (xhr, status, error) =>
|
||||||
@render()
|
@render()
|
||||||
data = JSON.parse( xhr.responseText )
|
data = JSON.parse(xhr.responseText)
|
||||||
@notify(
|
@notify(
|
||||||
type: 'error'
|
type: 'error'
|
||||||
msg: App.i18n.translateContent( data.message )
|
msg: App.i18n.translateContent(data.message)
|
||||||
)
|
)
|
||||||
|
|
||||||
App.Config.set( 'Language', { prio: 1000, name: 'Language', parent: '#profile', target: '#profile/language', controller: Index }, 'NavBarProfile' )
|
App.Config.set( 'Language', { prio: 1000, name: 'Language', parent: '#profile', target: '#profile/language', controller: Index }, 'NavBarProfile' )
|
Loading…
Reference in a new issue