[ADD] Added tipsy.clear()

bzr revid: fme@openerp.com-20120209135939-pcnmoswvnqjjb6ik
This commit is contained in:
Fabien Meghazi 2012-02-09 14:59:39 +01:00
parent a912c9b943
commit af15e1d83e
2 changed files with 6 additions and 2 deletions

View File

@ -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,

View File

@ -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;