summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-07 19:17:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-07 19:17:59 +0000
commit3676783052fed523c23247fb8181124e918dd4e1 (patch)
treeffcddde17e6c732a97ab0b8c25b66e2c9e3eed1e /public
parent599736aca7b9b5bd47d39fdf72c9fc1127730497 (diff)
downloadredmine-3676783052fed523c23247fb8181124e918dd4e1.tar.gz
redmine-3676783052fed523c23247fb8181124e918dd4e1.zip
Ability to filter issues using project, author, assignee and target version custom fields (#8161).
Custom fields must be marked as "Used as filter" to show up in the filters list. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10164 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js3
-rw-r--r--public/stylesheets/application.css2
2 files changed, 3 insertions, 2 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 20bfb0895..5f64c41ba 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -152,10 +152,11 @@ function buildFilterRow(field, operator, values) {
var option = $('<option>');
if ($.isArray(filterValue)) {
option.val(filterValue[1]).html(filterValue[0]);
+ if (values.indexOf(filterValue[1]) > -1) {option.attr('selected', true)};
} else {
option.val(filterValue).html(filterValue);
+ if (values.indexOf(filterValue) > -1) {option.attr('selected', true)};
}
- if (values.indexOf(filterValues[i][1]) > -1) {option.attr('selected', true)};
select.append(option);
}
break;
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 3400bd4c0..6727d356b 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -339,7 +339,7 @@ fieldset#date-range p { margin: 2px 0 2px 0; }
fieldset#filters table { border-collapse: collapse; }
fieldset#filters table td { padding: 0; vertical-align: middle; }
fieldset#filters tr.filter { height: 2.1em; }
-fieldset#filters td.field { width:200px; }
+fieldset#filters td.field { width:250px; }
fieldset#filters td.operator { width:170px; }
fieldset#filters td.values { white-space:nowrap; }
fieldset#filters td.values select {min-width:130px;}