diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-07 15:43:52 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-07 15:43:52 +0000 |
| commit | dc93d39258b899e2cb92e74b2932b9a442868015 (patch) | |
| tree | fc5f78516afa7e2445bb92bd1d9206d6ab34291e | |
| parent | 210a5b451be25439309e29ce63922e2e8826ddd1 (diff) | |
Apply contact groups js patch (#1486606)
git-svn-id: https://svn.roundcube.net/trunk@3475 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 2bc8808f7..e7f81da9e 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3408,8 +3408,7 @@ function rcube_webmail() // currently all groups belong to the local address book if (group) src = 0; - - if (!src) + else if (!src) src = this.env.source; if (page && this.current_page == page && src == this.env.source && group == this.env.group) @@ -3632,6 +3631,7 @@ function rcube_webmail() return; if (!this.name_input) { + this.enable_command('list', 'listgroup', false); this.name_input = document.createElement('input'); this.name_input.type = 'text'; this.name_input.value = this.env.contactgroups['G'+this.env.group].name; @@ -3706,6 +3706,8 @@ function rcube_webmail() this.name_input.parentNode.removeChild(this.name_input); this.name_input = null; } + + this.enable_command('list', 'listgroup', true); }; // callback for creating a new contact group @@ -3735,6 +3737,7 @@ function rcube_webmail() link.innerHTML = name; this.env.contactfolders[key].name = this.env.contactgroups[key].name = name; + this.triggerEvent('updategroup', { id:id, name:name, li:li[0] }); }; |
