2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00
Files
CATI_Tool/include/limesurvey/admin/scripts/listsurvey.js

29 lines
1.1 KiB
JavaScript

// $Id: listsurvey.js 9692 2011-01-15 21:31:10Z c_schmitz $
$.tablesorter.addParser({
// set a unique id
id: 'mydate',
is: function(s) {
// return false so this parser is not auto detected
return false;
},
format: function(s) {
// format your data for normalization
return $.datepicker.formatDate( '@', $.datepicker.parseDate(userdateformat,s));
},
// set type, either numeric or text
type: 'numeric'
});
$(document).ready(function(){
$(".listsurveys").tablesorter({ widgets: ['zebra'],
sortList: [[2,0]],
headers: {3:{sorter:'mydate'},
7:{sorter:'digit'}, // Full responses
8:{sorter:'digit'}, // Partial Responses
9:{sorter:'digit'} // Total Responses
}
});
$(".listsurveys tr:eq(1) th:eq(2)").css('min-width','200px');
});