aboutsummaryrefslogtreecommitdiff
path: root/static/user
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-07 20:29:11 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-07 21:14:09 +0200
commit6c44e85b820902a4d7bb640324d5ed927e414bcb (patch)
tree4fbf828cf87b65d2aeb52d5038d46f40d548f2c0 /static/user
parentImport missing car+cdr. (diff)
downloadcalp-6c44e85b820902a4d7bb640324d5ed927e414bcb.tar.gz
calp-6c44e85b820902a4d7bb640324d5ed927e414bcb.tar.xz
Extend javascript formatters to also take VEvent.
Diffstat (limited to 'static/user')
-rw-r--r--static/user/user-additions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/user/user-additions.js b/static/user/user-additions.js
index c0579df5..5f5357eb 100644
--- a/static/user/user-additions.js
+++ b/static/user/user-additions.js
@@ -1,4 +1,4 @@
-window.formatters.set('description', (el, d) => {
+window.formatters.set('description', (el, ev, d) => {
if (/<\/?\w+( +\w+(=["']?\w+["']?)?)* *\/?>/.exec(d)) {
/* Assume that the text is HTML if it contains something which looks
like an HTML tag */
@@ -40,7 +40,7 @@ window.salar = new Promise((resolve, reject) =>
)
-window.formatters.set('location', async function(el, d) {
+window.formatters.set('location', async function(el, _, d) {
let rx = /Lokal: (.*)/
let m = rx.exec(d)
if (! m) {