1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 15:26:19 +00:00

reult --> result

This commit is contained in:
zxj96
2019-05-29 16:44:37 +08:00
parent 21d4dc0cde
commit 4c68ee85f3

View File

@@ -619,23 +619,23 @@ export const Utils = {
case 'size-asc':
comparator = function(a, b) {
if (a.size === b.size) {
var result = _this.compareTwoWord(a.repo_name, b.repo_name);
let result = _this.compareTwoWord(a.repo_name, b.repo_name);
return result;
}
let reult = _this.compareTwoSize(a.size, b.size);
return reult;
let result = _this.compareTwoSize(a.size, b.size);
return result;
};
break;
case 'size-desc':
comparator = function(a, b) {
if (a.size === b.size) {
var result = _this.compareTwoWord(a.repo_name, b.repo_name);
let result = _this.compareTwoWord(a.repo_name, b.repo_name);
return -result;
}
let reult = _this.compareTwoSize(a.size, b.size);
return -reult;
let result = _this.compareTwoSize(a.size, b.size);
return -result;
};
break;
}
@@ -674,22 +674,22 @@ export const Utils = {
case 'size-asc':
comparator = function(a, b) {
if (a.type == 'dir' && b.type == 'dir') {
let reult = _this.compareTwoWord(a.name, b.name);
return reult;
let result = _this.compareTwoWord(a.name, b.name);
return result;
} else {
let reult = _this.compareTwoSize(a.size, b.size);
return reult;
let result = _this.compareTwoSize(a.size, b.size);
return result;
}
};
break;
case 'size-desc':
comparator = function(a, b) {
if (a.type == 'dir' && b.type == 'dir') {
let reult = _this.compareTwoWord(a.name, b.name);
return -reult;
let result = _this.compareTwoWord(a.name, b.name);
return -result;
} else {
let reult = _this.compareTwoSize(a.size, b.size);
return -reult;
let result = _this.compareTwoSize(a.size, b.size);
return -result;
}
};
break;