diff --git a/addons/web/static/lib/jquery.tipsy/jquery.tipsy.js b/addons/web/static/lib/jquery.tipsy/jquery.tipsy.js index d33cef28462..09dda6a3060 100644 --- a/addons/web/static/lib/jquery.tipsy/jquery.tipsy.js +++ b/addons/web/static/lib/jquery.tipsy/jquery.tipsy.js @@ -18,7 +18,7 @@ Tipsy.prototype = { show: function() { - $('div.tipsy').stop().remove(); + $.fn.tipsy.clear(); if (!this.$element.parent().length) { return; } @@ -179,6 +179,10 @@ return this; }; + + $.fn.tipsy.clear = function() { + $('div.tipsy').stop().remove(); + } $.fn.tipsy.defaults = { className: null, diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index c1e5b055b7b..46d02e02648 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -836,7 +836,7 @@ openerp.web.form.Widget = openerp.web.OldWidget.extend(/** @lends openerp.web.fo }, stop: function() { this._super.apply(this, arguments); - $('div.tipsy').stop().remove(); + $.fn.tipsy.clear(); }, process_modifiers: function() { var compute_domain = openerp.web.form.compute_domain;