summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-02-14 09:54:06 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-02-14 09:54:06 +0100
commitc8a714cca4978395292e82ed1971fbf92fa78487 (patch)
tree4a6cf0e1c1b1f83f584a5f8bf6cb7cdf933e201d /program/js/app.js
parenta6d4185a896a721a16c9cad4518687474c939d8b (diff)
Various fixes in contact groups handling with LDAP directories
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index e95344641..4ae5cc938 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -772,7 +772,7 @@ function rcube_webmail()
case 'moveto':
if (this.task == 'mail')
this.move_messages(props);
- else if (this.task == 'addressbook' && this.drag_active)
+ else if (this.task == 'addressbook')
this.copy_contact(null, props);
break;
@@ -4623,7 +4623,7 @@ function rcube_webmail()
var newkey = 'G'+prop.source+prop.newid,
newprop = $.extend({}, prop);;
- li.id = 'rcmli' + this.html_identifier(newkey);
+ li.id = 'rcmli' + this.html_identifier(newkey,true);
this.env.contactfolders[newkey] = this.env.contactfolders[key];
this.env.contactfolders[newkey].id = prop.newid;
this.env.group = prop.newid;
@@ -4641,10 +4641,11 @@ function rcube_webmail()
$(li).children().replaceWith(link);
}
// update displayed group name
- else if (li && (link = li.firstChild) && link.tagName.toLowerCase() == 'a')
+ else if (li && (link = li.firstChild) && link.tagName.toLowerCase() == 'a') {
link.innerHTML = prop.name;
+ this.env.contactfolders[key].name = this.env.contactgroups[key].name = prop.name;
+ }
- this.env.contactfolders[key].name = this.env.contactgroups[key].name = prop.name;
this.add_contact_group_row(prop, $(li), true);
this.triggerEvent('group_update', { id:prop.id, source:prop.source, name:prop.name, li:li[0], newid:prop.newid });