Added tags with 0 usages to autocomplete
This commit is contained in:
parent
8920cd277f
commit
ed833bf7b1
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ App.Controls.AutoCompleteInput = function($input) {
|
||||||
} else {
|
} else {
|
||||||
var source = tagList.getTags();
|
var source = tagList.getTags();
|
||||||
source = _.sortBy(source, function(a) { return -a.usages; });
|
source = _.sortBy(source, function(a) { return -a.usages; });
|
||||||
source = _.filter(source, function(a) { return a.usages > 0; });
|
source = _.filter(source, function(a) { return a.usages >= 0; });
|
||||||
source = _.map(source, function(a) {
|
source = _.map(source, function(a) {
|
||||||
return {
|
return {
|
||||||
tag: a.name,
|
tag: a.name,
|
||||||
|
|
Loading…
Reference in a new issue