summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-04 14:20:53 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-04 14:20:53 +0200
commitfa90d7162e54daca1b4a8eedf881122c8d966318 (patch)
tree4d62208c42b52e9a0d86c53ee8712039543387cc /public_html
parentb6f32c5f2c7b7c5bee8bec5471af953966f91467 (diff)
downloadwebadmin-fa90d7162e54daca1b4a8eedf881122c8d966318.tar.gz
Fix jumping to previous page when deleting last record on current page
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 928ef30..fd4d3fd 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1652,7 +1652,7 @@ function kolab_admin()
// if objects list exists
if ($('#'+list_id).length) {
// goto previous page if last record on the current page has been deleted
- if (action.match(/\.delete/) && this.env.list_count)
+ if (this.env.list_page > 1 && this.env.list_size == 1 && action.match(/\.delete/))
page -= 1;
this.command(list, {page: page});