summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-08-30 18:00:39 +0000
committeralecpl <alec@alec.pl>2010-08-30 18:00:39 +0000
commitb0fd4cfd69a51455b657e16fbd09a2bf11740904 (patch)
tree36f892ed672c9a11967676419105e4634b9c968d
parent5ac188f0a7e006cb30ffaf039e5326739c5463bd (diff)
- Small improvement
-rw-r--r--program/js/app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 48e05f44f..52bf4f67a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1782,11 +1782,11 @@ function rcube_webmail()
{
if (page == 'next')
page = this.env.current_page+1;
- if (page == 'last')
+ else if (page == 'last')
page = this.env.pagecount;
- if (page == 'prev' && this.env.current_page > 1)
+ else if (page == 'prev' && this.env.current_page > 1)
page = this.env.current_page-1;
- if (page == 'first' && this.env.current_page > 1)
+ else if (page == 'first' && this.env.current_page > 1)
page = 1;
if (page > 0 && page <= this.env.pagecount) {