mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the Limesurvey 1.91+ branch of queXS in to the trunk
This commit is contained in:
28
include/limesurvey/admin/scripts/listsurvey.js
Normal file
28
include/limesurvey/admin/scripts/listsurvey.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// $Id: listsurvey.js 9648 2011-01-07 13:06:39Z 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');
|
||||
});
|
||||
Reference in New Issue
Block a user