diff options
author | MichaIng <micha@dietpi.com> | 2021-09-13 16:44:08 +0200 |
---|---|---|
committer | MichaIng <micha@dietpi.com> | 2021-09-26 22:18:20 +0200 |
commit | 3a36984f50476b19a471380665eaac01d92256ad (patch) | |
tree | d1a2b4be9f3d92cd7f23d94a0671933e60d28908 /apps/files | |
parent | 277eaf41e7d5c946ec42b119723e041c3abf52bc (diff) | |
download | nextcloud-server-3a36984f50476b19a471380665eaac01d92256ad.tar.gz nextcloud-server-3a36984f50476b19a471380665eaac01d92256ad.zip |
Migrate deprecated toolip methods
With Bootstrap v4, the tooltip methods "fixTitle" and "destroy" have been removed. Only core/src/Polyfill/tooltip.js keeps them methods valid by translating them.
Signed-off-by: MichaIng <micha@dietpi.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 4 | ||||
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 4 | ||||
-rw-r--r-- | apps/files/js/newfilemenu.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 4f2f3f104d2..62e4cab3295 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2945,7 +2945,7 @@ } catch (error) { input.attr('title', error); input.tooltip({placement: 'right', trigger: 'manual'}); - input.tooltip('fixTitle'); + input.tooltip('_fixTitle'); input.tooltip('show'); input.addClass('error'); } @@ -2960,7 +2960,7 @@ } catch (error) { input.attr('title', error); input.tooltip({placement: 'right', trigger: 'manual'}); - input.tooltip('fixTitle'); + input.tooltip('_fixTitle'); input.tooltip('show'); input.addClass('error'); } diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index f73b6a55568..93ca40af2b4 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -72,13 +72,13 @@ var $el = $(e.trigger); $el.tooltip('hide') .attr('data-original-title', t('core', 'Copied!')) - .tooltip('fixTitle') + .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'); + .tooltip('_fixTitle'); }, 3000); }); clipboard.on('error', function(e) { diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js index 742a5e95fe2..d19efb85e62 100644 --- a/apps/files/js/newfilemenu.js +++ b/apps/files/js/newfilemenu.js @@ -138,7 +138,7 @@ } catch (error) { $input.attr('title', error); $input.tooltip({placement: 'right', trigger: 'manual', 'container': '.newFileMenu'}); - $input.tooltip('fixTitle'); + $input.tooltip('_fixTitle'); $input.tooltip('show'); $input.addClass('error'); } |