Setup term page/filter.

This commit is contained in:
kor 2018-07-17 01:02:50 +12:00
parent 3a2f06d238
commit af3f389a88

View File

@ -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("-");