diff options
-rw-r--r-- | core/js/sharedialogview.js | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 52e46664853..72d57c0c667 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -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 { |