diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2022-12-16 11:27:34 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-12-28 13:55:27 +0000 |
commit | 251d143338aeb10e8229ba9052d6f5f7dbb23aed (patch) | |
tree | 9ac713dbb6718092d072fab1524afc2c64bf6ec3 /apps/files/js/mainfileinfodetailview.js | |
parent | 8d53b82a2d2986241b621f12e59287a73db0d357 (diff) | |
download | nextcloud-server-251d143338aeb10e8229ba9052d6f5f7dbb23aed.tar.gz nextcloud-server-251d143338aeb10e8229ba9052d6f5f7dbb23aed.zip |
Replace custom tooltips with native ones in files
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index 0e0a297c793..b5093e5c251 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -69,17 +69,7 @@ _setupClipboard: function() { var clipboard = new Clipboard('.permalink'); clipboard.on('success', function(e) { - var $el = $(e.trigger); - $el.tooltip('hide') - .attr('data-original-title', t('core', 'Copied!')) - .tooltip('_fixTitle') - .tooltip({placement: 'bottom', trigger: 'manual'}) - .tooltip('show'); - _.delay(function() { - $el.tooltip('hide'); - $el.attr('data-original-title', t('files', 'Copy direct link (only works for users who have access to this file/folder)')) - .tooltip('_fixTitle'); - }, 3000); + OC.Notification.show(t('files', 'Direct link was copied (only works for users who have access to this file/folder)'), {type: 'success'}); }); clipboard.on('error', function(e) { var $row = this.$('.permalink-field'); @@ -192,7 +182,6 @@ } $iconDiv.css('background-image', 'url("' + iconUrl + '")'); } - this.$el.find('[title]').tooltip({placement: 'bottom'}); } else { this.$el.empty(); } |