don't user a higher paging size than max autocomplete entries are set

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-09-03 17:43:49 +02:00
parent e7b0f8b001
commit 4893e1765f
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 2 additions and 2 deletions

View File

@ -396,7 +396,7 @@
$shareWithField.removeClass('error') $shareWithField.removeClass('error')
.tooltip('hide'); .tooltip('hide');
var perPage = 200; var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200;
this._getSuggestions( this._getSuggestions(
search.term.trim(), search.term.trim(),
perPage, perPage,
@ -570,7 +570,7 @@
$shareWithField.focus(); $shareWithField.focus();
}; };
var perPage = 200; var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200;
var onlyExactMatches = true; var onlyExactMatches = true;
this._getSuggestions( this._getSuggestions(
$shareWithField.val(), $shareWithField.val(),