diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-12-31 16:15:57 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-02 10:28:42 +0100 |
commit | 457f5abf6cc611064b30bdc0d70a8d42a73c9706 (patch) | |
tree | 951f9b6816c5282f2acb378f61653e05b636b433 /search | |
parent | 4fdd626f0a4b6667e3fd4c376399617df5866315 (diff) | |
download | nextcloud-server-457f5abf6cc611064b30bdc0d70a8d42a73c9706.tar.gz nextcloud-server-457f5abf6cc611064b30bdc0d70a8d42a73c9706.zip |
fix count
Diffstat (limited to 'search')
-rw-r--r-- | search/js/search.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/search/js/search.js b/search/js/search.js index b19a420cee8..b090a4ec4a8 100644 --- a/search/js/search.js +++ b/search/js/search.js @@ -234,6 +234,9 @@ } else { // not showing result, decrease counter var count = $status.data('count') - 1; + if (count < 0) { + count = 0; + } $status.data('count', count) .text(t('search', '{count} search results in other places', {count:count}, count)); } |