Fixed link to group in Home view
This commit is contained in:
parent
ad5ed6fd1e
commit
1380086723
1 changed files with 2 additions and 2 deletions
|
@ -102,11 +102,11 @@ view_home=function() {
|
|||
sum+=value;
|
||||
diff='<td class="positive">+'+value.toFixed(2)+' €</td>';
|
||||
}
|
||||
tbody.html(tbody.html()+'<tr><td><a class="group-link">'+balances[g].name+'</a></td>'+diff+'</tr>');
|
||||
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).html();
|
||||
g=$(e.target).data('uuid');
|
||||
if (jQuery.type(groups[g])!='undefined') {
|
||||
view_group(groups[g]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue