From c0047ae6ec63a5ed745f733efca51ce332a296da Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 6 Jun 2013 17:38:12 +0200 Subject: Improve pagination --- hyperkitty/static/js/hyperkitty.js | 2 +- hyperkitty/templates/paginator.html | 16 +++++++++++++--- hyperkitty/templates/search_results.html | 2 +- hyperkitty/templatetags/hk_generic.py | 9 +++++++-- hyperkitty/views/accounts.py | 1 + hyperkitty/views/list.py | 1 + hyperkitty/views/search.py | 4 ++-- 7 files changed, 26 insertions(+), 9 deletions(-) diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js index 90d94c8..5545cb9 100644 --- a/hyperkitty/static/js/hyperkitty.js +++ b/hyperkitty/static/js/hyperkitty.js @@ -462,7 +462,7 @@ function update_last_views(base_url) { url: url, success: function(data) { container.html(data); - container.find(".pager a").click(function(e) { + container.find(".pagination a").click(function(e) { e.preventDefault(); _update(base_url + $(this).attr("href")); }); diff --git a/hyperkitty/templates/paginator.html b/hyperkitty/templates/paginator.html index 358ae5d..0b4e0d7 100644 --- a/hyperkitty/templates/paginator.html +++ b/hyperkitty/templates/paginator.html @@ -1,8 +1,11 @@ {% load i18n %} -