mirror of https://github.com/apache/archiva.git
[MRM-1853] On first start up, you get a perpetual loading indicator.
Submitted by Robert David
This commit is contained in:
parent
55795f1d17
commit
dc52ac5c79
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue