mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Setup term page/filter.
This commit is contained in:
parent
3a2f06d238
commit
af3f389a88
@ -64,6 +64,19 @@ function Main()
|
|||||||
console.log('Display \'home\'');
|
console.log('Display \'home\'');
|
||||||
tempDatabase = this.database;
|
tempDatabase = this.database;
|
||||||
}
|
}
|
||||||
|
else if (target == 'term')
|
||||||
|
{
|
||||||
|
console.log('Display \'terms\'');
|
||||||
|
|
||||||
|
for (i = 0; i < this.keys.length; i++)
|
||||||
|
{
|
||||||
|
let value = this.database[this.keys[i]];
|
||||||
|
if (typeof value.TERM !== 'undefined')
|
||||||
|
{
|
||||||
|
tempDatabase[this.keys[i]] = this.database[this.keys[i]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var splitTarget = target.split("-");
|
var splitTarget = target.split("-");
|
||||||
|
Loading…
Reference in New Issue
Block a user