aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index ef71b6b8..0f0775fb 100644
--- a/static/script.js
+++ b/static/script.js
@@ -246,6 +246,13 @@ async function remove_event (element) {
});
console.log(response);
+ if (response.status < 200 || response.status >= 300) {
+ alert(`Error removing event ${response.status}\n${response.statusText}`)
+ }
+
+ toggle_child_popup(element);
+ element.style.background = "black !important";
+ element.style.color = "black !important";
}
var bar_object = false