From 36caf5fc16b5a95a0bf37f08f0caf974683b2df6 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 27 Feb 2019 11:53:05 +0000 Subject: [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). --- addons/web/static/src/js/libs/bootstrap.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/libs/bootstrap.js') 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'; -- cgit v1.2.3