diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-12-04 15:29:16 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-12-04 15:29:16 +0100 |
commit | ddd832c2dcfa330fe5335daa8b2165172ce79a2a (patch) | |
tree | 428253aa78c1dad1632c09744b39e19bbab577e8 | |
parent | 7484c2f0d84e0fef54c813f8ff0f542a7ace0a87 (diff) | |
download | nextcloud-server-ddd832c2dcfa330fe5335daa8b2165172ce79a2a.tar.gz nextcloud-server-ddd832c2dcfa330fe5335daa8b2165172ce79a2a.zip |
trim search string before passing it on
-rw-r--r-- | core/js/share.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index 85e92b43be1..c83c3ee08c8 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -447,7 +447,7 @@ OC.Share={ $('#shareWith').autocomplete({minLength: 2, delay: 750, source: function(search, response) { var $loading = $('#dropdown .shareWithLoading'); $loading.removeClass('hidden'); - $.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term, itemShares: OC.Share.itemShares }, function(result) { + $.get(OC.filePath('core', 'ajax', 'share.php'), { fetch: 'getShareWith', search: search.term.trim(), itemShares: OC.Share.itemShares }, function(result) { $loading.addClass('hidden'); if (result.status == 'success' && result.data.length > 0) { $( "#shareWith" ).autocomplete( "option", "autoFocus", true ); |