From ed833bf7b10cb30cbb8a16aff47761b6b7875e9b Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 10 Nov 2014 19:04:07 +0100 Subject: [PATCH] Added tags with 0 usages to autocomplete --- public_html/js/Controls/AutoCompleteInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/Controls/AutoCompleteInput.js b/public_html/js/Controls/AutoCompleteInput.js index d8e363ed..a92ee399 100644 --- a/public_html/js/Controls/AutoCompleteInput.js +++ b/public_html/js/Controls/AutoCompleteInput.js @@ -48,7 +48,7 @@ App.Controls.AutoCompleteInput = function($input) { } else { var source = tagList.getTags(); 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) { return { tag: a.name,