default message on empty profile
This commit is contained in:
@@ -31,8 +31,7 @@ databap.pageInit = function()
|
||||
|
||||
//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
|
||||
(
|
||||
profile.history,
|
||||
@@ -50,11 +49,6 @@ databap.pageInit = function()
|
||||
}
|
||||
);
|
||||
databap.getMainElem('#history_subbox').show('fast', function(){databap.setInitEnd(true);});
|
||||
}
|
||||
else
|
||||
{
|
||||
databap.setInitEnd(true);
|
||||
}
|
||||
},
|
||||
{id:databap.vars.id},
|
||||
'json'
|
||||
|
||||
Reference in New Issue
Block a user