diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-26 17:19:46 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-26 17:19:46 +0000 |
| commit | 4429525e5af446dec78e52b3a68daf63d834ad74 (patch) | |
| tree | 02abdffd21ca2fe305529a8ae6a313f5014883bc /roundcubemail/program | |
| parent | bd5d5af44f31861c40b2a0cde573e974a9d5b6bf (diff) | |
Implement insert_contact_group() to make group creation work
git-svn-id: https://svn.roundcube.net/trunk@3426 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 5330fb0da..ae85c254d 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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 = $('<a>').attr('href', '#').attr('onclick', "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); } |
