Fixed link to group in Home view

This commit is contained in:
Benjamin Renard 2014-01-16 20:22:53 +01:00
parent ad5ed6fd1e
commit 1380086723

View file

@ -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]);
}