mirror of
https://github.com/redmine/redmine.git
synced 2026-02-21 14:07:52 +01:00
Group versions by status in issue filters (#10412).
git-svn-id: http://svn.redmine.org/redmine/trunk@15601 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -175,6 +175,11 @@ function buildFilterRow(field, operator, values) {
|
||||
if ($.isArray(filterValue)) {
|
||||
option.val(filterValue[1]).text(filterValue[0]);
|
||||
if ($.inArray(filterValue[1], values) > -1) {option.attr('selected', true);}
|
||||
if (filterValue.length == 3) {
|
||||
var optgroup = select.find('optgroup').filter(function(){return $(this).attr('label') == filterValue[2]});
|
||||
if (!optgroup.length) {optgroup = $('<optgroup>').attr('label', filterValue[2]);}
|
||||
option = optgroup.append(option);
|
||||
}
|
||||
} else {
|
||||
option.val(filterValue).text(filterValue);
|
||||
if ($.inArray(filterValue, values) > -1) {option.attr('selected', true);}
|
||||
|
||||
Reference in New Issue
Block a user