diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-19 22:16:18 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-19 22:16:18 +0300 |
commit | f8705d4fa1891db32f7b4190f311b4950cdd3be3 (patch) | |
tree | d29dd0eb0cc57eacdd6a649b575a0766b71893da /app/assets/javascripts/main.js | |
parent | cefeeaea3364c52afc8077c6eaa8914a4bb27852 (diff) |
Replace tooltip('destroy') with tooltip('dispose')
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r-- | app/assets/javascripts/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 39a43265d5a..77f0fd61545 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -46,7 +46,7 @@ document.addEventListener('beforeunload', () => { // Unbind scroll events $(document).off('scroll'); // Close any open tooltips - $('.has-tooltip, [data-toggle="tooltip"]').tooltip('destroy'); + $('.has-tooltip, [data-toggle="tooltip"]').tooltip('dispose'); // Close any open popover $('[data-toggle="popover"]').popover('destroy'); }); @@ -108,7 +108,7 @@ document.addEventListener('DOMContentLoaded', () => { addSelectOnFocusBehaviour('.js-select-on-focus'); $('.remove-row').on('ajax:success', function removeRowAjaxSuccessCallback() { - $(this).tooltip('destroy') + $(this).tooltip('dispose') .closest('li') .fadeOut(); }); |