summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-10-27 13:50:38 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-10-27 13:50:38 +0200
commitca72c0150b3ea490c06c8c4824aebf0d0da33088 (patch)
tree19ee5efb85bcf2a97e60b0372320df129ac0f447 /apps/comments/js
parentbd951e926f7913568257f321f2894dfcc66aa3b3 (diff)
downloadnextcloud-server-ca72c0150b3ea490c06c8c4824aebf0d0da33088.tar.gz
nextcloud-server-ca72c0150b3ea490c06c8c4824aebf0d0da33088.zip
configurable amount of autocomplete results in comments
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/comments/js')
-rw-r--r--apps/comments/js/commentstabview.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 9082706e715..e061ed35330 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -179,6 +179,7 @@
var s = this;
$target.atwho({
at: '@',
+ limit: OC.appConfig.comments.maxAutoCompleteResults,
callbacks: {
remoteFilter: s._onAutoComplete,
highlighter: function (li) {
@@ -237,7 +238,8 @@
search: query,
itemType: 'files',
itemId: s.model.get('id'),
- sorter: 'comments|share-recipients'
+ sorter: 'comments|share-recipients',
+ limit: OC.appConfig.comments.maxAutoCompleteResults
},
function (data) {
callback(data);