Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2022-11-11 13:23:58 +0300
committerAleksander Machniak <alec@alec.pl>2022-11-11 13:25:48 +0300
commita2c0f79efb38a32caf2398f0169f2eca9f6bb973 (patch)
tree28718172bd6526f640b34dbdcae8a69d8caee278
parent249bc0e33854394faea7c59aaeeac30b415a3a9a (diff)
Fix return to previous contact source/group after search reset
-rw-r--r--program/js/app.js11
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) {