summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-13 08:42:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-13 08:42:32 +0000
commitb071a937b3e08c2d43fc14151c63fdb1f96b3741 (patch)
treed1df3f0c31d3ec40cffe0ee261f0b92693994245
parent176ce785740c5b65cc0b674789c669a76fdd8124 (diff)
downloadredmine-b071a937b3e08c2d43fc14151c63fdb1f96b3741.tar.gz
redmine-b071a937b3e08c2d43fc14151c63fdb1f96b3741.zip
List custom fields fielters: multiple select filter wider (#15073).
Patch by Jérôme Bataille. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12215 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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);
}
}