From 90f797e99419c92f8291e14f51792efb0c7fb995 Mon Sep 17 00:00:00 2001 From: Charles Holbrow Date: Mon, 18 Mar 2013 17:43:08 -0400 Subject: [PATCH] append "Notes" label to note count in tablesorter --- karmaworld/templates/courses/course_list.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/karmaworld/templates/courses/course_list.html b/karmaworld/templates/courses/course_list.html index 3e5be4b..a3e3da0 100644 --- a/karmaworld/templates/courses/course_list.html +++ b/karmaworld/templates/courses/course_list.html @@ -39,6 +39,10 @@ $(document).ready(function() { null, null, ], + // Add the 'Notes' label string to the notes row + 'fnRowCallback': function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { + $('td:eq(2)', nRow).append(' Notes'); + }, // Initial sorting 'aaSorting': [[2,'desc']] // Use out Ajax endpoing to populate the list -- 2.25.1