aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 32bc3b4b..6e82dd27 100644
--- a/static/script.js
+++ b/static/script.js
@@ -607,7 +607,17 @@ function close_popup(popup) {
function open_popup(popup) {
popup.classList.add("visible");
let element = document.getElementById(popup.id.substr(5))
- let root = document.body;
+ // let root = document.body;
+ let root;
+ switch (VIEW) {
+ case 'week':
+ root = document.getElementsByClassName("days")[0];
+ break;
+ case 'month':
+ default:
+ root = document.body;
+ break;
+ }
/* start <X, Y> sets offset between top left corner
of event in calendar and popup. 10, 10 soo old
event is still visible */