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