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

Aline Manera alinefm at linux.vnet.ibm.com
Tue Aug 19 18:15:54 UTC 2014


On 08/19/2014 04:22 AM, Wen Wang wrote:
> 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";

Could we remove updatePage() function? Or is it still in use in 
somewhere else?

>               }, function(err) {
>                   kimchi.message.error(err.responseJSON.reason);
>               });




More information about the Kimchi-devel mailing list