summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-03-26 17:19:46 +0000
committerthomascube <thomas@roundcube.net>2010-03-26 17:19:46 +0000
commit0dc5bc86a3b57e1a0484118df0f42cd3843498f1 (patch)
treee773345b7e5264b322de00396ce24acb2840e6a2
parenta61bbb24aafec5718ca9bc985e7c596c5821f018 (diff)
Implement insert_contact_group() to make group creation work
-rw-r--r--program/js/app.js8
1 files changed, 8 insertions, 0 deletions
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 = $('<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);
}