summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulian Müller <julian.mueller.ffb@kabelmail.de>2016-01-21 22:22:26 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-12 10:04:30 +0100
commitde4824077eecee0e76da422b039ff34428eef3ad (patch)
tree649bd46f8af9a06117bff02f0fde3898736f86da /core
parent594ba8695b2de2a73c82023202245c7fda3c27bf (diff)
downloadnextcloud-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.js7
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 {