client side code webstorm code cleanup.

This commit is contained in:
kay.one 2013-03-29 16:28:58 -07:00
commit 445ea4f344
94 changed files with 4355 additions and 4243 deletions

View file

@ -1,7 +1,7 @@
$.tablesorter.addParser({
// set a unique id
id: 'title',
is: function (s) {
id : 'title',
is : function (s) {
// return false so this parser is not auto detected
return false;
},
@ -10,33 +10,34 @@ $.tablesorter.addParser({
return s.match(/title="(.*?)"/)[1].toLowerCase();
},
// set type, either numeric or text
type: 'text'
type : 'text'
});
$.tablesorter.addParser({
// set a unique id
id: 'date',
is: function (s) {
id : 'date',
is : function (s) {
// 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 === '')
if (match === '') {
return Date.create().addYears(100).format(Date.ISO8601_DATETIME);
}
return match;
},
// set type, either numeric or text
type: 'text'
type : 'text'
});
$.tablesorter.addParser({
// set a unique id
id: 'innerHtml',
is: function (s) {
id : 'innerHtml',
is : function (s) {
// return false so this parser is not auto detected
return false;
},
@ -45,5 +46,5 @@ $.tablesorter.addParser({
return $(s).get(0).innerHTML;
},
// set type, either numeric or text
type: 'text'
type : 'text'
});