append "Notes" label to note count in tablesorter
authorCharles Holbrow <charlesholbrow@gmail.com>
Mon, 18 Mar 2013 21:43:08 +0000 (17:43 -0400)
committerCharles Holbrow <charlesholbrow@gmail.com>
Mon, 18 Mar 2013 21:43:08 +0000 (17:43 -0400)
karmaworld/templates/courses/course_list.html

index 3e5be4bcc2edf105d7d719d409c1c12cf49c6c78..a3e3da0c78a2fdafcbd4d6aca3fa12729021a1bf 100644 (file)
@@ -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