From: Charles Connell Date: Mon, 24 Mar 2014 19:42:28 +0000 (-0400) Subject: Merge branch 'master' into redesign X-Git-Tag: release-20150131~144^2~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb1de1e18ed83d2894ca5f04c0134e0244632160;p=oweals%2Fkarmaworld.git Merge branch 'master' into redesign Conflicts: karmaworld/templates/courses/course_list.html karmaworld/templates/courses/course_list_entry.html --- fb1de1e18ed83d2894ca5f04c0134e0244632160 diff --cc karmaworld/templates/courses/course_list.html index ce0463e,8ae1ab9..78f0be3 --- a/karmaworld/templates/courses/course_list.html +++ b/karmaworld/templates/courses/course_list.html @@@ -11,26 -13,69 +11,80 @@@ {% endblock %} {% block pagescripts %} - - - + + + + +{% endblock %} ++<<<<<<< HEAD +{% block bodyscripts %} + + + ++======= + // load dataTable for course data + $('#data_table_list').dataTable({ + // remove the default filter label + 'oLanguage': { + 'sSearch': '', + }, + // we will set column widths explicitly + 'bAutoWidth': false, + // don't provide a option for the user to change the table page length + 'bLengthChange': false, + // sepcify the number of rows in a page + 'iDisplayLength': 20, + // Position the filter bar at the top + 'sDom': '<"top"f>rt<"bottom"p><"clear">', + // Specify options for each column + "aoColumnDefs": [ + { + // 4th element: thanks + "aTargets": [ 6 ], + "bSortable": true, + "bVisible": true, + "aDataSort": [ 3 ] + }, + { + // 3rd element: notes + "aTargets": [ 5 ], + "bSortable": true, + "bVisible": true, + "aDataSort": [ 2 ] + }, + { + // 2nd element: date + "aTargets": [ 4 ], + "bSortable": true, + "bVisible": true, + "aDataSort": [ 1 ] + }, + { + // 1st element: "sort by" label + "aTargets": [ 0 ], + "bSortable": false, + "bVisible": true + } + ], + // Initial sorting + 'aaSorting': [[6,'desc']] + }); + $('.dataTables_filter input').attr("placeholder", "search courses"); + // TODO: can't prepend html to .dataTables_filter input html for fontawesome search icon + }); + ++>>>>>>> master {% endblock %} {% block content %}