mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
Update tooltip on new search
This commit is contained in:
parent
de4824077e
commit
113bfb0b07
@ -196,16 +196,20 @@
|
||||
var suggestions = users.concat(groups).concat(remotes);
|
||||
|
||||
if (suggestions.length > 0) {
|
||||
$('.shareWithField').removeClass('error');
|
||||
$('.shareWithField').tooltip('hide')
|
||||
$('.shareWithField').autocomplete("option", "autoFocus", true);
|
||||
$('.shareWithField').removeClass('error')
|
||||
.tooltip('hide')
|
||||
.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');
|
||||
$('.shareWithField').addClass('error')
|
||||
.attr('data-original-title', t('core', 'No users or groups found for {search}', {search: $('.shareWithField').val()}))
|
||||
.tooltip('hide')
|
||||
.tooltip({
|
||||
placement: 'bottom',
|
||||
trigger: 'manual',
|
||||
})
|
||||
.tooltip('fixTitle')
|
||||
.tooltip('show');
|
||||
response();
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user