Merge "Rewrite the query string when removing browse criteria"

This commit is contained in:
Jenkins 2017-04-28 20:47:46 +00:00 committed by Gerrit Code Review
commit ab4e16645d
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,8 @@
tag-complete-option-template-url="'app/search/template/typeahead_criteria_item.html'"
tag-complete-tag-template-url="'app/search/template/criteria_tag_item.html'"
tag-complete-loading="loadingCriteria = isLoading"
tag-complete-on-select="addCriteria(tag)">
tag-complete-on-select="addCriteria(tag)"
tag-remove-callback="rewriteQueryString()">
</div>
<span class="form-control-feedback text-muted">
<i class="fa fa-search"

View File

@ -232,7 +232,7 @@ angular.module('sb.util').directive('tagComplete',
var selectedTags = $scope.tagCompleteTags || [];
if (selectedTags.length > 0 && !$scope.newTagName) {
selectedTags.pop();
$scope.tagRemoveCallback(selectedTags.pop());
return true;
}
};