diff options
-rw-r--r-- | core/js/sharedialogview.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 4cebf7962e8..52e46664853 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -196,9 +196,16 @@ var suggestions = users.concat(groups).concat(remotes); if (suggestions.length > 0) { + $('.shareWithField').removeClass('error'); + $('.shareWithField').tooltip('hide') $('.shareWithField').autocomplete("option", "autoFocus", true); response(suggestions); + } else { + $('.shareWithField').addClass('error'); + $('.shareWithField').attr('title', t('core', 'No users or groups found for ' + $('.shareWithField').val())); + $('.shareWithField').tooltip({placement: 'bottom', trigger: 'manual'}); + $('.shareWithField').tooltip('show'); response(); } } else { |