aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-28 01:49:50 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-28 01:49:50 +0200
commit36395c31961c26199fb4f0cde912a110cda72846 (patch)
tree7bc807573ad07c8ba7e24569848e481854bf91e8
parentFix week number display in small calendar. (diff)
downloadcalp-36395c31961c26199fb4f0cde912a110cda72846.tar.gz
calp-36395c31961c26199fb4f0cde912a110cda72846.tar.xz
Ensured event creation drag and drop works.
-rw-r--r--static/script.js13
-rw-r--r--static/style.css1
2 files changed, 9 insertions, 5 deletions
diff --git a/static/script.js b/static/script.js
index 5b4a4b99..e6f2737e 100644
--- a/static/script.js
+++ b/static/script.js
@@ -211,11 +211,14 @@ window.onload = function () {
// once a minute for now, could probably be slowed to every 10 minutes
window.setInterval(update_current_time_bar, 1000 * 60)
- // for (let c of document.getElementsByClassName("events")) {
- // c.onmousedown = onmousedownhandler;
- // c.onmouseup = onmouseuphandler;
- // c.onmousemove = onmousemovehandler;
- // }
+ /* Is event creation active? */
+ if (false) {
+ for (let c of document.getElementsByClassName("events")) {
+ c.onmousedown = onmousedownhandler;
+ c.onmouseup = onmouseuphandler;
+ c.onmousemove = onmousemovehandler;
+ }
+ }
// for (let e of document.getElementsByClassName("event-inner")) {
// e.onclick = toggle_event_pupup;
diff --git a/static/style.css b/static/style.css
index b692d5b9..8d0197fd 100644
--- a/static/style.css
+++ b/static/style.css
@@ -560,6 +560,7 @@ along with their colors.
.event.generated {
background-color: #55FF5550;
+ transition: none;
}
.clock-0 { top: calc(100%/24 * 0); }