From: Coleman Watts Date: Wed, 20 Aug 2014 14:50:26 +0000 (+0100) Subject: CRM-12872 - Handle sorting links with ajax X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4c5309c748d15c4d1d477c434f0dbce07ff9e79d;p=civicrm-core.git CRM-12872 - Handle sorting links with ajax --- 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}