From 4c5309c748d15c4d1d477c434f0dbce07ff9e79d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 20 Aug 2014 15:50:26 +0100 Subject: [PATCH] CRM-12872 - Handle sorting links with ajax --- templates/CRM/common/pager.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/CRM/common/pager.tpl b/templates/CRM/common/pager.tpl index 83edc911f5..744d084c59 100644 --- a/templates/CRM/common/pager.tpl +++ b/templates/CRM/common/pager.tpl @@ -127,9 +127,10 @@ } }, 200); }) - .on('click', 'a.crm-pager-link, #alpha-filter a', function() { + // Handle sorting, paging and alpha filtering links + .on('click', 'a.crm-pager-link, #alpha-filter a, th a.sorting, th a.sorting_desc, th a.sorting_asc', function(e) { refresh($(this).attr('href')); - return false; + e.preventDefault(); }); }); {/literal} -- 2.25.1