mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Removed tablesorter
This commit is contained in:
parent
4b5b0ad751
commit
42fb4fcaa4
7 changed files with 0 additions and 3148 deletions
|
@ -1,50 +0,0 @@
|
|||
$.tablesorter.addParser({
|
||||
// set a unique id
|
||||
id : 'title',
|
||||
is : function () {
|
||||
// return false so this parser is not auto detected
|
||||
return false;
|
||||
},
|
||||
format: function (s) {
|
||||
// format your data for normalization
|
||||
return s.match(/title="(.*?)"/)[1].toLowerCase();
|
||||
},
|
||||
// set type, either numeric or text
|
||||
type : 'text'
|
||||
});
|
||||
|
||||
$.tablesorter.addParser({
|
||||
// set a unique id
|
||||
id : 'date',
|
||||
is : function () {
|
||||
// return false so this parser is not auto detected
|
||||
return false;
|
||||
},
|
||||
format: function (s) {
|
||||
// format your data for normalization
|
||||
var match = s.match(/data-date="(.*?)"/)[1];
|
||||
|
||||
if (match === '') {
|
||||
return Date.create().addYears(100).format(Date.ISO8601_DATETIME);
|
||||
}
|
||||
|
||||
return match;
|
||||
},
|
||||
// set type, either numeric or text
|
||||
type : 'text'
|
||||
});
|
||||
|
||||
$.tablesorter.addParser({
|
||||
// set a unique id
|
||||
id : 'innerHtml',
|
||||
is : function () {
|
||||
// return false so this parser is not auto detected
|
||||
return false;
|
||||
},
|
||||
format: function (s) {
|
||||
// format your data for normalization
|
||||
return $(s).get(0).innerHTML;
|
||||
},
|
||||
// set type, either numeric or text
|
||||
type : 'text'
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue