]> source.dussan.org Git - redmine.git/commitdiff
List custom fields fielters: multiple select filter wider (#15073).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Oct 2013 08:42:32 +0000 (08:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Oct 2013 08:42:32 +0000 (08:42 +0000)
Patch by Jérôme Bataille.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12215 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 0ad0efc56eca918713f2adb4afeb59a158b82e0d..e102af275408116add7baec8b481dc4aab15d81f 100644 (file)
@@ -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);
   }
 }