summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-09-03 17:43:49 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-09-10 23:15:46 +0200
commit4893e1765fe2a30851de1537f3206d445f56404c (patch)
tree0ba081701011032279fe9d981401b050d2e460dd /core
parente7b0f8b001f8d84fa236a5ea4ebf13764a9646db (diff)
downloadnextcloud-server-4893e1765fe2a30851de1537f3206d445f56404c.tar.gz
nextcloud-server-4893e1765fe2a30851de1537f3206d445f56404c.zip
don't user a higher paging size than max autocomplete entries are set
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 19d551149df..f5b876c37be 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -396,7 +396,7 @@
$shareWithField.removeClass('error')
.tooltip('hide');
- var perPage = 200;
+ var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200;
this._getSuggestions(
search.term.trim(),
perPage,
@@ -570,7 +570,7 @@
$shareWithField.focus();
};
- var perPage = 200;
+ var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200;
var onlyExactMatches = true;
this._getSuggestions(
$shareWithField.val(),