Fix home view when user not connected
This commit is contained in:
parent
e4110a43dc
commit
86e98ca0a3
1 changed files with 4 additions and 1 deletions
|
@ -109,8 +109,11 @@ view_home=function() {
|
|||
sum+=value;
|
||||
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> </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) {
|
||||
g=$(e.target).data('uuid');
|
||||
|
|
Loading…
Reference in a new issue