Reset client settings and local storage on switch to user.

This commit is contained in:
Martin Edenhofer 2013-10-07 07:26:24 +02:00
parent fe749fe4cc
commit 68e7ec857b
2 changed files with 2 additions and 1 deletions

View file

@ -135,7 +135,7 @@ class App.ControllerTable extends App.Controller
record = App[ attribute.relation ].find( object[rowWithoutId] )
object[row.name] = record.name
@log 'error', 'table', 'header', header, 'overview', dataTypesForCols, 'objects', data.objects
@log 'debug', 'table', 'header', header, 'overview', dataTypesForCols, 'objects', data.objects
table = App.view('generic/table')(
header: header
overview: dataTypesForCols

View file

@ -37,6 +37,7 @@ class Index extends App.Controller
callback: (e) ->
e.preventDefault()
user_id = $(e.target).parent().parent().data('id')
App.Auth._logout()
window.location = App.Config.get('api_path') + '/sessions/switch/' + user_id
}
]