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); } }