Added tags with 0 usages to autocomplete

This commit is contained in:
Marcin Kurczewski 2014-11-10 19:04:07 +01:00
parent 8920cd277f
commit ed833bf7b1

View file

@ -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,