aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-01-13 01:00:53 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-01-13 01:00:53 +0100
commit3aa241410947f8e495ac673fc17cc90964325902 (patch)
treeca18ef704a04200806ff6354aad52e7ad7202c88
parentAdd animations to popup tab labels. (diff)
downloadcalp-3aa241410947f8e495ac673fc17cc90964325902.tar.gz
calp-3aa241410947f8e495ac673fc17cc90964325902.tar.xz
Bind recur dropdowns.
-rw-r--r--static/binders.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/static/binders.js b/static/binders.js
index 15275d28..79803c09 100644
--- a/static/binders.js
+++ b/static/binders.js
@@ -23,7 +23,12 @@ function bind_recur(el, e) {
el.properties.rrule[rr.name] = this.value;
});
} else if (rr.tagName === 'select') {
- console.log("TODO");
+ rr.addEventListener('change', function () {
+ let opt = this.options[this.selectedIndex];
+ let v = opt.value;
+ // console.log(v);
+ el.properties.rrule[rr.name] = v;
+ });
}
}