aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/script.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 785ff23c..7303d1c6 100644
--- a/static/script.js
+++ b/static/script.js
@@ -686,7 +686,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 */