summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/javascripts/application.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 0ad0efc56..e102af275 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -280,8 +280,13 @@ function toggleOperator(field) {
function toggleMultiSelect(el) {
if (el.attr('multiple')) {
el.removeAttr('multiple');
+ el.attr('size', 1);
} else {
el.attr('multiple', true);
+ if (el.children().length > 10)
+ el.attr('size', 10);
+ else
+ el.attr('size', 4);
}
}