CRM-12872 - Handle sorting links with ajax
authorColeman Watts <coleman@civicrm.org>
Wed, 20 Aug 2014 14:50:26 +0000 (15:50 +0100)
committerColeman Watts <coleman@civicrm.org>
Wed, 20 Aug 2014 14:50:26 +0000 (15:50 +0100)
templates/CRM/common/pager.tpl

index 83edc911f51abe1fa9cf482b28826b6d95c953b2..744d084c59d3fba23d77ee47d84a1675cc4fba61 100644 (file)
                 }
               }, 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}