First try for shareWithField error message

Second try for ShareWithField error message
remotes/origin/users-ajaxloadgroups
Julian Müller 2016-01-21 22:22:26 +07:00 committed by Roeland Jago Douma
parent 594ba8695b
commit de4824077e
1 changed files with 7 additions and 0 deletions

@ -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 {