diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-22 13:06:09 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-22 13:06:09 +0000 |
| commit | 8c6e04698284f8e665868bffbcd550cb08a6c625 (patch) | |
| tree | b078808dda9d7942cc6470f0fa55320123a24f82 | |
| parent | 3a2aff079b9c5a5b429504ba9a9713b7b6c68c25 (diff) | |
- fix the contact creation when group is not selected
git-svn-id: https://svn.roundcube.net/trunk@3535 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c95e093e1..e822e10cb 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3431,8 +3431,8 @@ function rcube_webmail() // load contact record this.load_contact = function(cid, action, framed) { - var add_url = ''; - var target = window; + var add_url = '', target = window; + if (this.env.contentframe && window.frames && window.frames[this.env.contentframe]) { add_url = '&_framed=1'; target = window.frames[this.env.contentframe]; @@ -3442,8 +3442,11 @@ function rcube_webmail() return false; if (action && (cid || action=='add') && !this.drag_active) { + if (this.env.group) + add_url += '&_gid='+urlencode(this.env.group); + this.set_busy(true); - target.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group)+'&_cid='+urlencode(cid) + add_url; + target.location.href = this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_cid='+urlencode(cid) + add_url; } return true; }; |
