[Kimchi-devel] [PATCH] Bugfix: Log out from Administrator tab raises popup errors

Wen Wang wenwang at linux.vnet.ibm.com
Tue Aug 19 07:22:40 UTC 2014


This bug turns out to be caused by we change the login format from
login-window to tranditional login format. After the logout, we can no
longer and there is no need to update the pages and popup a login
window. Now we redirect to login.html after logout.

Signed-off-by: Wen Wang <wenwang at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.main.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui/js/src/kimchi.main.js b/ui/js/src/kimchi.main.js
index 613ab41..ba54b26 100644
--- a/ui/js/src/kimchi.main.js
+++ b/ui/js/src/kimchi.main.js
@@ -239,7 +239,7 @@ kimchi.main = function() {
         // Perform logging out via Ajax request.
         $('#btn-logout').on('click', function() {
             kimchi.logout(function() {
-                updatePage();
+                document.location.href = "login.html";
             }, function(err) {
                 kimchi.message.error(err.responseJSON.reason);
             });
-- 
1.7.1




More information about the Kimchi-devel mailing list