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
@ -70,7 +70,14 @@ function Main()
|
||||
|
||||
if (this.queryCur == 'add')
|
||||
{
|
||||
this.add.show();
|
||||
if (window.showAdd != undefined && window.showAdd)
|
||||
{
|
||||
this.add.show();
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location.hash = this.queryPrev;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -311,12 +311,15 @@ function View()
|
||||
{
|
||||
let menuContent = ``;
|
||||
|
||||
// ADD
|
||||
menuContent += `<a href='#add'>`;
|
||||
menuContent += `<div class="menu-item"><b>a</b>dd</div>`;
|
||||
menuContent += `</a>`;
|
||||
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>`;
|
||||
menuContent += `<div class="menu-spacer"></div>`;
|
||||
}
|
||||
|
||||
// TYPE
|
||||
menuContent += `<a href='#'>`;
|
||||
|
Loading…
Reference in New Issue
Block a user