use the table's raw-data attribute for sorting

pull/6827/head
Jens Ulferts 8 years ago
parent e223d7ec23
commit 093922d8f0
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 10
      app/assets/javascripts/reporting/reporting.js

@ -12,6 +12,14 @@
nextDesc : I18n.t('js.sort.activate_dsc'),
nextNone : I18n.t('js.sort.activate_no')
};
$('#sortable-table').not('.tablesorter').tablesorter();
$('#sortable-table')
.not('.tablesorter')
.tablesorter({
sortList: [[0, 0]],
textExtraction: function(node, table, cellIndex) {
return $(node).attr('raw-data');
}
});
});
})(jQuery);

Loading…
Cancel
Save