diff --git a/docs/logic/main.js b/docs/logic/main.js index e648eba..35e8e1f 100644 --- a/docs/logic/main.js +++ b/docs/logic/main.js @@ -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 { diff --git a/docs/logic/view.js b/docs/logic/view.js index bfb26ac..15fc2d1 100644 --- a/docs/logic/view.js +++ b/docs/logic/view.js @@ -311,12 +311,15 @@ function View() { let menuContent = ``; - // ADD - menuContent += ``; - menuContent += ``; - menuContent += ``; + if (window.showAdd != undefined && window.showAdd) + { + // ADD + menuContent += ``; + menuContent += ``; + menuContent += ``; - menuContent += ``; + menuContent += ``; + } // TYPE menuContent += ``;