diff --git a/views/webpage_spots.tpl b/views/webpage_spots.tpl
index d9ca3a5..2fb2dc3 100644
--- a/views/webpage_spots.tpl
+++ b/views/webpage_spots.tpl
@@ -192,6 +192,23 @@
+
+
diff --git a/webassets/js/spots.js b/webassets/js/spots.js
index c3a5d4b..2a79b7b 100644
--- a/webassets/js/spots.js
+++ b/webassets/js/spots.js
@@ -339,11 +339,15 @@ function userGridUpdated() {
// React to toggling/closing panels
function toggleFiltersPanel() {
- // If we are going to display the filters panel, hide the display panel
+ // If we are going to show the filters panel, hide the display and add spot panels
if (!$("#filters-area").is(":visible") && $("#display-area").is(":visible")) {
$("#display-area").hide();
$("#display-button").button("toggle");
}
+ if (!$("#filters-area").is(":visible") && $("#add-spot-area").is(":visible")) {
+ $("#add-spot-area").hide();
+ $("#add-spot-button").button("toggle");
+ }
$("#filters-area").toggle();
}
function closeFiltersPanel() {
@@ -352,11 +356,15 @@ function closeFiltersPanel() {
}
function toggleDisplayPanel() {
- // If we are going to display status, load the data for the status panel, and hide the filters panel
+ // If we are going to show the display panel, hide the filters and add spot panels
if (!$("#display-area").is(":visible") && $("#filters-area").is(":visible")) {
$("#filters-area").hide();
$("#filters-button").button("toggle");
}
+ if (!$("#display-area").is(":visible") && $("#add-spot-area").is(":visible")) {
+ $("#add-spot-area").hide();
+ $("#add-spot-button").button("toggle");
+ }
$("#display-area").toggle();
}
function closeDisplayPanel() {
@@ -364,6 +372,23 @@ function closeDisplayPanel() {
$("#display-area").hide();
}
+function toggleAddSpotPanel() {
+ // If we are going to show the add spot panel, hide the filters and display panels
+ if (!$("#add-spot-area").is(":visible") && $("#filters-area").is(":visible")) {
+ $("#filters-area").hide();
+ $("#filters-button").button("toggle");
+ }
+ if (!$("#add-spot-area").is(":visible") && $("#display-area").is(":visible")) {
+ $("#display-area").hide();
+ $("#display-button").button("toggle");
+ }
+ $("#add-spot-area").toggle();
+}
+function closeAddSpotPanel() {
+ $("#add-spot-button").button("toggle");
+ $("#add-spot-area").hide();
+}
+
// Display the intro box, unless the user has already dismissed it once.
function displayIntroBox() {
if (localStorage.getItem("intro-box-dismissed") == null) {