Commit 84f3321a authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #722 from pawl/fixnamedfilters

Fix active filters when named_filter_urls=True
parents 2ed25bcb a3680d2a
......@@ -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