First try for shareWithField error message

Second try for ShareWithField error message
remotes/origin/users-ajaxloadgroups
Julian Müller 10 years ago committed by Roeland Jago Douma
parent 594ba8695b
commit de4824077e
  1. 7
      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 {

Loading…
Cancel
Save