summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 8b5460ac4..57a1a8ee9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3738,7 +3738,9 @@ function rcube_webmail()
var key = 'G'+prop.id;
this.env.contactfolders[key] = this.env.contactgroups[key] = prop;
- var link = $('<a>').attr('href', '#').attr('onclick', "return rcmail.command('listgroup','"+prop.id+"',this)").html(prop.name);
+ var link = $('<a>').attr('href', '#')
+ .bind('click', function() { return rcmail.command('listgroup', prop.id, this);})
+ .html(prop.name);
var li = $('<li>').attr('id', 'rcmli'+key).addClass('contactgroup').append(link);
$(this.gui_objects.folderlist).append(li);