Commit a3680d2a authored by Paul Brown's avatar Paul Brown

fix active filters when named_filter_urls are used

parent 9871d361
......@@ -120,7 +120,7 @@ var AdminFilters = function(element, filtersElement, filterGroups, activeFilters
// if one of the subfilters are selected, use that subfilter to create the input field
var filterSelection = 0;
$.each(subfilters, function( subfilterIndex, subfilter ) {
if (this.arg == selectedIndex) {
if (this.index == selectedIndex) {
$select.append($('<option/>').attr('value', subfilter.arg).attr('selected', true).text(subfilter.operation));
filterSelection = subfilterIndex;
} else {
......@@ -178,4 +178,4 @@ var AdminFilters = function(element, filtersElement, filterGroups, activeFilters
});
lastCount += 1;
};
\ No newline at end of file
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment