diff options
author | alecpl <alec@alec.pl> | 2010-08-23 06:21:52 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-08-23 06:21:52 +0000 |
commit | 053e5a087cbac7dd9318ac2c60257f9e67207c3e (patch) | |
tree | ae990a2fd265680b64b9d5fb0df52b5246d1dab6 /program/js | |
parent | 3c3433e05a2f379793d36d9885beb4571b04ed53 (diff) |
- Fix list page controls when contacts group is selected
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js index 6266c3393..86e6563ca 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1791,7 +1791,7 @@ function rcube_webmail() if (this.task == 'mail') this.list_mailbox(this.env.mailbox, page); else if (this.task == 'addressbook') - this.list_contacts(this.env.source, null, page); + this.list_contacts(this.env.source, this.env.group, page); } }; @@ -3500,8 +3500,8 @@ function rcube_webmail() this.list_contacts = function(src, group, page) { - var add_url = ''; - var target = window; + var add_url = '', + target = window; if (!src) src = this.env.source; @@ -3510,8 +3510,7 @@ function rcube_webmail() return false; if (src != this.env.source) { - page = 1; - this.env.current_page = page; + page = this.env.current_page = 1; this.reset_qsearch(); } else if (group != this.env.group) |