From d0b553d198c2e124b3799845202bb2e992a073de Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 31 May 2016 12:27:28 +0200 Subject: [PATCH] port Yann's multiple-select implementation to cryptpad --- www/form/index.html | 7 +++++++ www/form/main.js | 2 +- www/form/ula.js | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/www/form/index.html b/www/form/index.html index 97b69f270..064063814 100644 --- a/www/form/index.html +++ b/www/form/index.html @@ -63,6 +63,13 @@ Dropdowns
+ +
diff --git a/www/form/main.js b/www/form/main.js index f4e0fc751..0dc1c9fdf 100644 --- a/www/form/main.js +++ b/www/form/main.js @@ -91,7 +91,7 @@ define([ return function (content) { return typeof content !== 'undefined' ? $this.val(content): - canonicalize($this.val()); + typeof($this.val()) === 'string'? canonicalize($this.val()): $this.val(); }; } }()); diff --git a/www/form/ula.js b/www/form/ula.js index 4591bb5eb..011783ff5 100644 --- a/www/form/ula.js +++ b/www/form/ula.js @@ -17,6 +17,7 @@ define([], function () { number: 'change', range: 'keyup change', 'select-one': 'change', + 'select-multiple': 'change', textarea: 'change keyup', };