Index: lams_central/web/includes/javascript/main.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/Attic/main.js,v diff -u -r1.1.2.20 -r1.1.2.21 --- lams_central/web/includes/javascript/main.js 15 Dec 2016 16:43:33 -0000 1.1.2.20 +++ lams_central/web/includes/javascript/main.js 26 Dec 2016 16:47:51 -0000 1.1.2.21 @@ -70,7 +70,7 @@ }) }); - $('.tablesorter').bind('filterEnd pagerComplete', function(event, data){ + $('.tablesorter').bind('pagerComplete', function(event, data){ //hide pager if total amount of courses is less than 10 if (data.totalRows < 10) { @@ -80,7 +80,7 @@ } //in case active course is not yet chosen by user, select the fist one from the list - if ((activeOrgId == null) && (event.type == "pagerComplete") && (data.totalRows > 0)) { + if ((activeOrgId == null) && (data.totalRows > 0)) { var firstOrgId = $('.tablesorter a').first().data("id"); selectOrganisation(firstOrgId); }