summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(),