From: Charles Holbrow Date: Mon, 18 Mar 2013 21:43:08 +0000 (-0400) Subject: append "Notes" label to note count in tablesorter X-Git-Tag: release-20150131~497 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90f797e99419c92f8291e14f51792efb0c7fb995;p=oweals%2Fkarmaworld.git append "Notes" label to note count in tablesorter --- 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