diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-04 12:20:53 (GMT) |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-04 12:20:53 (GMT) |
commit | fa90d7162e54daca1b4a8eedf881122c8d966318 (patch) | |
tree | 4d62208c42b52e9a0d86c53ee8712039543387cc /public_html/js | |
parent | b6f32c5f2c7b7c5bee8bec5471af953966f91467 (diff) | |
download | kolab-wap-fa90d7162e54daca1b4a8eedf881122c8d966318.tar.gz |
Fix jumping to previous page when deleting last record on current page
Diffstat (limited to 'public_html/js')
-rw-r--r-- | public_html/js/kolab_admin.js | 2 |
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}); |