fix missing references
This commit is contained in:
parent
b68b14ca66
commit
4325c74aa4
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ function initDB(obj){
|
||||||
}});
|
}});
|
||||||
Object.defineProperty(DB,"keys",{value:(Object.keys(DB).sort())});
|
Object.defineProperty(DB,"keys",{value:(Object.keys(DB).sort())});
|
||||||
|
|
||||||
Object.defineProperty(DB,"getTagsForFile",{value:(name)=>(this[name])});
|
Object.defineProperty(DB,"getTagsForFile",{value:function(name){return this[name]}});
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ function getText(node){
|
||||||
|
|
||||||
function getSecondaryCategories(list){
|
function getSecondaryCategories(list){
|
||||||
let a = [];
|
let a = [];
|
||||||
for (file of list){
|
for (let file of list){
|
||||||
a.concat(DB.getTagsForFile(file));
|
a.concat(DB.getTagsForFile(file));
|
||||||
}
|
}
|
||||||
a.sort();
|
a.sort();
|
||||||
|
@ -148,7 +148,7 @@ function createCategories(){
|
||||||
link.target = "_blank";
|
link.target = "_blank";
|
||||||
}else{
|
}else{
|
||||||
node.textContent = name.name;
|
node.textContent = name.name;
|
||||||
name.value > 0 && node.setAttribute("data-value",name.value+1);
|
name.value > 0 && node.setAttribute("data-value",name.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
|
@ -181,7 +181,7 @@ function createCategories(){
|
||||||
ns[i] += (item === "legacy" ? -1 : 1);
|
ns[i] += (item === "legacy" ? -1 : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let map = ret.map((a,i)=>({name:a,value:ns[i]}))
|
let map = ret.map((a,i)=>({name:a,value:ns[i]+1}))
|
||||||
return map
|
return map
|
||||||
//return map.sort((a,b)=>(a.value > b.value?-1:a.value < b.value ? 1:0))
|
//return map.sort((a,b)=>(a.value > b.value?-1:a.value < b.value ? 1:0))
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue