diff options
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/program/js/app.js b/program/js/app.js index df1aa3926..f37089d57 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1341,11 +1341,8 @@ function rcube_webmail() this.list_mailbox(this.env.mailbox, 1); } else if (s && this.task == 'addressbook') { - if (this.env.source == '') { - for (n in this.env.address_sources) break; - this.env.source = n; - this.env.group = ''; - } + this.env.source = this.env.last_source || ''; + this.env.group = this.env.last_group || ''; this.list_contacts(this.env.source, this.env.group, 1); } break; @@ -6258,8 +6255,8 @@ function rcube_webmail() else if (!this.env.search_request) folder = group ? 'G'+src+group : src; - this.env.source = src; - this.env.group = group; + this.env.source = this.env.last_source = src; + this.env.group = this.env.last_group = group; // truncate groups listing stack $.each(this.env.address_group_stack, function(i, v) { |