summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-09-05 15:28:22 +0200
committerChristophe Simonis <chs@odoo.com>2014-09-05 15:28:22 +0200
commit31bf30d2d0eb78baaa36360b99fe58bf7cd4c9e7 (patch)
treed7be61ecd6bb4c8b5552e39b03e2a64eebbbf323 /addons/web/static/src/js/core.js
parentafba9e8817c458640ae446ac7aaaab79be4fe1e9 (diff)
parented1c173971968eaa96693cb4e1547efa6e6c34e0 (diff)
[MERGE] forward port of branch 8.0 up to ed1c173
Diffstat (limited to 'addons/web/static/src/js/core.js')
-rw-r--r--addons/web/static/src/js/core.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js
index 169547d78c0..5ed174a128d 100644
--- a/addons/web/static/src/js/core.js
+++ b/addons/web/static/src/js/core.js
@@ -772,6 +772,7 @@ instance.web.unblockUI = function() {
$.fn.tooltip.Constructor.DEFAULTS.placement = 'auto top';
$.fn.tooltip.Constructor.DEFAULTS.html = true;
$.fn.tooltip.Constructor.DEFAULTS.trigger = 'hover focus click';
+$.fn.tooltip.Constructor.DEFAULTS.container = 'body';
//overwrite bootstrap tooltip method to prevent showing 2 tooltip at the same time
var bootstrap_show_function = $.fn.tooltip.Constructor.prototype.show;
$.fn.tooltip.Constructor.prototype.show = function () {
@@ -785,18 +786,6 @@ $.fn.tooltip.Constructor.prototype.show = function () {
if (e.isDefaultPrevented() || !inDom) return;
return bootstrap_show_function.call(this);
};
-//overwrite bootstrap tooltip init method in order to check if tooltip is in a modal or not and
-//if so it needs to have a container body in order to be visible
-var bootstrap_init_tooltip_fnct = $.fn.tooltip.Constructor.prototype.init;
-$.fn.tooltip.Constructor.prototype.init = function (type, element, options) {
- options = options || {}
- if ($('.modal[aria-hidden="false"]').length !== 0){
- if (options && !options.container){
- options = _.extend({container: 'body'},options);
- }
- }
- return bootstrap_init_tooltip_fnct.call(this, type, element, options);
-}
/**
* Registry for all the client actions key: tag value: widget