Finish HotfixLogin
This commit is contained in:
@@ -657,30 +657,4 @@ function boolValue(value, trueVal, falseVal) {
|
||||
|
||||
function array_prepend(array, value) {
|
||||
return [value].concat(array);
|
||||
}
|
||||
|
||||
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
||||
"non-empty-string-asc": function (str1, str2) {
|
||||
if (str1 === "") {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (str2 === "") {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return str1 < str2 ? -1 : (str1 > str2 ? 1 : 0);
|
||||
},
|
||||
|
||||
"non-empty-string-desc": function (str1, str2) {
|
||||
if (str1 === "") {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (str2 === "") {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return str1 < str2 ? 1 : (str1 > str2 ? -1 : 0);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1594,4 +1594,30 @@ $.fn.scrollToTop = function (offset, ms) {
|
||||
}, ms);
|
||||
|
||||
return $(this);
|
||||
};
|
||||
};
|
||||
|
||||
$.fn.extend($.fn.dataTableExt.oSort, {
|
||||
"non-empty-string-asc": function (str1, str2) {
|
||||
if (str1 === "") {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (str2 === "") {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return str1 < str2 ? -1 : (str1 > str2 ? 1 : 0);
|
||||
},
|
||||
|
||||
"non-empty-string-desc": function (str1, str2) {
|
||||
if (str1 === "") {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (str2 === "") {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return str1 < str2 ? 1 : (str1 > str2 ? -1 : 0);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user