diff --git a/program/js/app.js b/program/js/app.js index 5330fb0da..ae85c254d 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3655,6 +3655,14 @@ function rcube_webmail() this.insert_contact_group = function(prop) { this.reset_add_input(); + + prop.type = 'group'; + 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 li = $('
  • ').attr('id', 'rcmli'+key).addClass('contactgroup').append(link); + $(this.gui_objects.folderlist).append(li); }