Merge "Rewrite the query string when removing browse criteria"
This commit is contained in:
commit
ab4e16645d
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue