diff --git a/inc/myco.js b/inc/myco.js
index 1fb2527..46600cf 100644
--- a/inc/myco.js
+++ b/inc/myco.js
@@ -101,9 +101,15 @@ view_home=function() {
sum+=value;
diff='
+'+value.toFixed(2)+' € | ';
}
- tbody.html(tbody.html()+''+g+' | '+diff+'
');
+ tbody.html(tbody.html()+''+g+' | '+diff+'
');
}
}
+ $('#view-home #mybalances a.group-link').bind('click',function(e) {
+ g=$(e.target).html();
+ if (jQuery.type(groups[g])!='undefined') {
+ view_group(groups[g]);
+ }
+ });
if (sum<0) {
$('#view-home #mybalances #total-value').html(''+sum.toFixed(2)+' €');
}