mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Add handling for hiding add-button in web version.
This commit is contained in:
parent
78394f6902
commit
dc834b4251
@ -69,10 +69,17 @@ function Main()
|
||||
}
|
||||
|
||||
if (this.queryCur == 'add')
|
||||
{
|
||||
if (window.showAdd != undefined && window.showAdd)
|
||||
{
|
||||
this.add.show();
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location.hash = this.queryPrev;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.view.display(this.db.filter(this.queryCur));
|
||||
}
|
||||
|
@ -311,12 +311,15 @@ function View()
|
||||
{
|
||||
let menuContent = ``;
|
||||
|
||||
if (window.showAdd != undefined && window.showAdd)
|
||||
{
|
||||
// ADD
|
||||
menuContent += `<a href='#add'>`;
|
||||
menuContent += `<div class="menu-item"><b>a</b>dd</div>`;
|
||||
menuContent += `</a>`;
|
||||
|
||||
menuContent += `<div class="menu-spacer"></div>`;
|
||||
}
|
||||
|
||||
// TYPE
|
||||
menuContent += `<a href='#'>`;
|
||||
|
Loading…
Reference in New Issue
Block a user