Finish HotfixLogin

This commit is contained in:
2021-11-22 15:54:27 +01:00
2 changed files with 28 additions and 28 deletions

View File

@@ -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);
}
});
}

View File

@@ -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);
}
});