diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-27 13:50:38 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-27 13:50:38 +0200 |
commit | ca72c0150b3ea490c06c8c4824aebf0d0da33088 (patch) | |
tree | 19ee5efb85bcf2a97e60b0372320df129ac0f447 /apps/comments/js | |
parent | bd951e926f7913568257f321f2894dfcc66aa3b3 (diff) | |
download | nextcloud-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.js | 4 |
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); |