Benjamin Renard commited on 2014-01-16 19:22:53
Showing 1 changed files, with 2 additions and 2 deletions.
... | ... |
@@ -102,11 +102,11 @@ view_home=function() { |
102 | 102 |
sum+=value; |
103 | 103 |
diff='<td class="positive">+'+value.toFixed(2)+' €</td>'; |
104 | 104 |
} |
105 |
- tbody.html(tbody.html()+'<tr><td><a class="group-link">'+balances[g].name+'</a></td>'+diff+'</tr>'); |
|
105 |
+ tbody.html(tbody.html()+'<tr><td><a class="group-link" data-uuid="'+g+'">'+balances[g].name+'</a></td>'+diff+'</tr>'); |
|
106 | 106 |
} |
107 | 107 |
} |
108 | 108 |
$('#view-home #mybalances a.group-link').bind('click',function(e) { |
109 |
- g=$(e.target).html(); |
|
109 |
+ g=$(e.target).data('uuid'); |
|
110 | 110 |
if (jQuery.type(groups[g])!='undefined') { |
111 | 111 |
view_group(groups[g]); |
112 | 112 |
} |
113 | 113 |