diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-02 08:28:24 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-02 08:46:43 +0200 |
commit | e7a190179f09f14f6eddea0946721a7d0cf34302 (patch) | |
tree | e752bd3599238aa42fbba9f45e0ba9b8b12c6c19 /core/js/sharedialogview.js | |
parent | 579588a4cd430f785e30e627c2d8d12131bce4f6 (diff) | |
download | nextcloud-server-e7a190179f09f14f6eddea0946721a7d0cf34302.tar.gz nextcloud-server-e7a190179f09f14f6eddea0946721a7d0cf34302.zip |
Change oc_config usage to OC.config
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/sharedialogview.js')
-rw-r--r-- | core/js/sharedialogview.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index d5ee3c93fe2..3e813a5dbe5 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -361,8 +361,8 @@ } var moreResultsAvailable = ( - oc_config['sharing.maxAutocompleteResults'] > 0 - && Math.min(perPage, oc_config['sharing.maxAutocompleteResults']) + OC.config['sharing.maxAutocompleteResults'] > 0 + && Math.min(perPage, OC.config['sharing.maxAutocompleteResults']) <= Math.max( users.length + exactUsers.length, groups.length + exactGroups.length, @@ -624,8 +624,8 @@ } var moreResultsAvailable = ( - oc_config['sharing.maxAutocompleteResults'] > 0 - && Math.min(perPage, oc_config['sharing.maxAutocompleteResults']) + OC.config['sharing.maxAutocompleteResults'] > 0 + && Math.min(perPage, OC.config['sharing.maxAutocompleteResults']) <= Math.max( users.length + exactUsers.length, groups.length + exactGroups.length, @@ -690,7 +690,7 @@ $loading = this.$el.find('.shareWithLoading'), $confirm = this.$el.find('.shareWithConfirm'); - var count = oc_config['sharing.minSearchStringLength']; + var count = OC.config['sharing.minSearchStringLength']; if (search.term.trim().length < count) { var title = n('core', 'At least {count} character is needed for autocompletion', @@ -719,7 +719,7 @@ $shareWithField.removeClass('error') .tooltip('hide'); - var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200; + var perPage = parseInt(OC.config['sharing.maxAutocompleteResults'], 10) || 200; this._getSuggestions( search.term.trim(), perPage, @@ -972,7 +972,7 @@ $shareWithField.focus(); }; - var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200; + var perPage = parseInt(OC.config['sharing.maxAutocompleteResults'], 10) || 200; this._getSuggestions( $shareWithField.val(), perPage, |