aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-29 00:42:48 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-29 00:49:28 +0200
commitb3fca6966f7a6a3a4291486748802fc694dfbd1a (patch)
treeebea27edc3176b51f1eb39f2d393e111d0f36505 /static/script.js
parentTest tooltip library. (diff)
downloadcalp-b3fca6966f7a6a3a4291486748802fc694dfbd1a.tar.gz
calp-b3fca6966f7a6a3a4291486748802fc694dfbd1a.tar.xz
Made code more compatible with popups, improve config.
Diffstat (limited to '')
-rw-r--r--static/script.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 91c840e3..4fbf160e 100644
--- a/static/script.js
+++ b/static/script.js
@@ -261,7 +261,7 @@ window.onload = function () {
}
$(document).ready(function() {
- Tipped.setDefaultSkin('none');
+ Tipped.setDefaultSkin("purple");
Tipped.create(".event", {
/* no padding, I am the one who styles! */
padding: false,
@@ -273,5 +273,15 @@ $(document).ready(function() {
acts as close buttons */
showOn: 'click',
hideOn: 'click',
+
+ /* makes popups relative our scrolling days view */
+ container: '.days',
+
+ /* Ensures that the popups stay within the given area,
+ and don't strectch the container */
+ containment: {
+ selector: '.days',
+ },
+ behaviour: 'sticky',
});
});