Permalink
Browse files

Prevents sorting by empty column headers in the datatable.

  • Loading branch information...
1 parent 53f2b3c commit 561c256c234a654c07a9aac9a46710fe6f3d292b Dave Buchfuhrer committed Sep 27, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 app/views/evaluations/index.html.haml
@@ -24,9 +24,9 @@
%th Status
%th Creator
%th Created At
- %th
- %th
- %th
+ %th.empty
+ %th.empty
+ %th.empty
%tbody
:javascript
@@ -35,6 +35,9 @@
"sWrapper": "dataTables_wrapper form-inline"
} );
$('#evaluations_table').dataTable( {
+ "aoColumnDefs" : [
+ { "bSortable" : false, "aTargets" : ["empty"] }
+ ],
"sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
"bSortClasses" : false,
"sPaginationType": "full_numbers",

0 comments on commit 561c256

Please sign in to comment.