default message on empty profile

This commit is contained in:
2015-07-09 19:49:06 +02:00
parent 725aa63d49
commit 608edb7a1a

View File

@@ -31,8 +31,7 @@ databap.pageInit = function()
//user history //user history
$UserHistory = databap.getMainElem('#user_history'); $UserHistory = databap.getMainElem('#user_history');
if(profile.history!= null && typeof profile.history != 'undefined') if(typeof profile.history == 'undefined') profile.history = {{type:'', id:0, action:'', date:'', title:'Va donc contribuer !'}};
{
$.each $.each
( (
profile.history, profile.history,
@@ -50,11 +49,6 @@ databap.pageInit = function()
} }
); );
databap.getMainElem('#history_subbox').show('fast', function(){databap.setInitEnd(true);}); databap.getMainElem('#history_subbox').show('fast', function(){databap.setInitEnd(true);});
}
else
{
databap.setInitEnd(true);
}
}, },
{id:databap.vars.id}, {id:databap.vars.id},
'json' 'json'