diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-12 10:04:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-12 10:04:33 +0100 |
commit | 113bfb0b072f274fca6116153bf3c83d645b21c7 (patch) | |
tree | 945ebc08e763e9c855a15eb33f446db9ec10d775 /core/js/sharedialogview.js | |
parent | de4824077eecee0e76da422b039ff34428eef3ad (diff) | |
download | nextcloud-server-113bfb0b072f274fca6116153bf3c83d645b21c7.tar.gz nextcloud-server-113bfb0b072f274fca6116153bf3c83d645b21c7.zip |
Update tooltip on new search
Diffstat (limited to 'core/js/sharedialogview.js')
-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 { |