[MRM-1853] On first start up, you get a perpetual loading indicator.

Submitted by Robert David
This commit is contained in:
Olivier Lamy 2014-07-24 12:08:19 +10:00
parent 55795f1d17
commit dc52ac5c79
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
getUserFromLoginCookie=function(){ getUserFromLoginCookie=function(){
var cookieContent=$.cookie('archiva_login'); var cookieContent=$.cookie('archiva_login');
$.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent); $.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent);
if (!cookieContent) {
return null;
}
var user = $.parseJSON(cookieContent); var user = $.parseJSON(cookieContent);
if(!user){ if(!user){
return null; return null;