Fix home view when user not connected

This commit is contained in:
Benjamin Renard 2016-09-13 00:16:31 +02:00
parent e4110a43dc
commit 86e98ca0a3

View file

@ -109,8 +109,11 @@ view_home=function() {
sum+=value; sum+=value;
diff='<td class="positive">+'+value.toFixed(2)+' €</td>'; diff='<td class="positive">+'+value.toFixed(2)+' €</td>';
} }
tbody.html(tbody.html()+'<tr><td><a class="group-link" data-uuid="'+g+'">'+balances[g].name+'</a></td>'+diff+'</tr>');
} }
else {
diff=$('<td>&nbsp;</td>');
}
tbody.html(tbody.html()+'<tr><td><a class="group-link" data-uuid="'+g+'">'+balances[g].name+'</a></td>'+diff+'</tr>');
} }
$('#view-home #mybalances a.group-link').bind('click',function(e) { $('#view-home #mybalances a.group-link').bind('click',function(e) {
g=$(e.target).data('uuid'); g=$(e.target).data('uuid');