diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-02-27 11:53:05 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-02-27 12:27:39 +0000 |
| commit | 36caf5fc16b5a95a0bf37f08f0caf974683b2df6 (patch) | |
| tree | d22f8adf76efbf0ba5369365a88a8a37e5edd81d /addons/web/static | |
| parent | f74ab64df7a8bd8e6d91e80b848d361bbcb3b011 (diff) | |
[FIX] web: disable (new) sanitization of tooltips
Bootstrap 4.3.1 introduced tooltip sanitization. Odoo should normally
use tooltips for secure content anyway, so this commit disables this
sanitization. A proper analyse of our tooltip should however be done
to know if sanitizing is needed (it can also be enabled case by case).
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/js/libs/bootstrap.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/libs/bootstrap.js b/addons/web/static/src/js/libs/bootstrap.js index 3dd2c7049e1..9db99815009 100644 --- a/addons/web/static/src/js/libs/bootstrap.js +++ b/addons/web/static/src/js/libs/bootstrap.js @@ -10,6 +10,7 @@ odoo.define('web.bootstrap.extensions', function () { $.fn.tooltip.Constructor.Default.placement = 'auto'; $.fn.tooltip.Constructor.Default.fallbackPlacement = ['bottom', 'right', 'left', 'top']; $.fn.tooltip.Constructor.Default.html = true; +$.fn.tooltip.Constructor.Default.sanitize = false; $.fn.tooltip.Constructor.Default.trigger = 'hover'; $.fn.tooltip.Constructor.Default.container = 'body'; $.fn.tooltip.Constructor.Default.boundary = 'window'; |
