From eac4ccefde02d56a1d2a8b1aaacd50fe0bb10d69 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 25 Jan 2016 13:17:50 +0100 Subject: [PATCH] Wait 1,2 sec. until open ajax called are closed. --- app/assets/javascripts/app/controllers/users.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/users.coffee b/app/assets/javascripts/app/controllers/users.coffee index 675d5a69f..624fcb234 100644 --- a/app/assets/javascripts/app/controllers/users.coffee +++ b/app/assets/javascripts/app/controllers/users.coffee @@ -76,7 +76,10 @@ class Index extends App.Controller @disconnectClient() $('#app').hide().attr('style', 'display: none!important') App.Auth._logout() - window.location = App.Config.get('api_path') + '/sessions/switch/' + id + @delay( + 1200, + window.location = App.Config.get('api_path') + '/sessions/switch/' + id + ) edit = (id, e) => e.preventDefault()