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 = $('').attr('href', '#').attr('onclick', "return rcmail.command('listgroup','"+prop.id+"',this)").html(prop.name); + var link = $('').attr('href', '#') + .bind('click', function() { return rcmail.command('listgroup', prop.id, this);}) + .html(prop.name); var li = $('
  • ').attr('id', 'rcmli'+key).addClass('contactgroup').append(link); $(this.gui_objects.folderlist).append(li);