From d379dc897a1da7f6d63ffbcef0e22960b8bf3d9b Mon Sep 17 00:00:00 2001 From: JohnDoh Date: Mon, 20 Feb 2017 18:31:30 +0000 Subject: [PATCH] small fix for current group detection and add similar rules for group-delete --- program/js/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 7a8afff9c0a..f3a6ac25ea8 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6253,7 +6253,8 @@ function rcube_webmail() delete this.env.contactgroups[key]; } - this.list_contacts(prop.source, 0); + if (prop.source == this.env.source && prop.id == this.env.group) + this.list_contacts(prop.source, 0); }; //remove selected contacts from current active group @@ -6324,7 +6325,7 @@ function rcube_webmail() $(this.treelist.get_item(key)).children().first().html(prop.name); this.env.contactfolders[key].name = this.env.contactgroups[key].name = prop.name; - if (prop.id == this.env.group) + if (prop.source == this.env.source && prop.id == this.env.group) this.set_group_prop(prop); }