Merge "Make it possible to browse for multiple tags simultaneously"
This commit is contained in:
commit
09332833aa
@ -80,7 +80,7 @@ angular.module('sb.search').controller('SearchCriteriaController',
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.type === cItem.type) {
|
||||
if (item.type === cItem.type && item.type !== 'Tags') {
|
||||
$scope.criteria.splice(i, 1);
|
||||
}
|
||||
}
|
||||
|
@ -183,7 +183,15 @@ angular.module('sb.services').service('Criteria',
|
||||
|
||||
criteria.forEach(function (item) {
|
||||
if (parameterMap.hasOwnProperty(item.type)) {
|
||||
params[parameterMap[item.type]] = item.value;
|
||||
if (parameterMap[item.type] === 'tags') {
|
||||
if (!('tags' in params)) {
|
||||
params.tags = [item.value];
|
||||
} else {
|
||||
params.tags.push(item.value);
|
||||
}
|
||||
} else {
|
||||
params[parameterMap[item.type]] = item.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
return params;
|
||||
|
Loading…
x
Reference in New Issue
Block a user