diff options
author | Julian Müller <julian.mueller.ffb@kabelmail.de> | 2016-01-21 22:22:26 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-12 10:04:30 +0100 |
commit | de4824077eecee0e76da422b039ff34428eef3ad (patch) | |
tree | 649bd46f8af9a06117bff02f0fde3898736f86da /core | |
parent | 594ba8695b2de2a73c82023202245c7fda3c27bf (diff) | |
download | nextcloud-server-de4824077eecee0e76da422b039ff34428eef3ad.tar.gz nextcloud-server-de4824077eecee0e76da422b039ff34428eef3ad.zip |
First try for shareWithField error message
Second try for ShareWithField error message
Diffstat (limited to 'core')
-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 { |