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
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;}
|
||||
|
||||
Reference in New Issue
Block a user