[FIX]for dialog box stick to page.
bzr revid: vme@tinyerp.com-20131220073241-xi7v47jecgewapw2
This commit is contained in:
parent
012a42a6f1
commit
5e5483bde4
|
@ -238,6 +238,10 @@ instance.web.Dialog = instance.web.Widget.extend({
|
|||
if (this.dialog_inited && !this.isDestroyed() && this.$el.is(":data(dialog)")) {
|
||||
this.$el.dialog('destroy');
|
||||
}
|
||||
//For Remove tooltip from dialog box when destroy
|
||||
//Bad fix, bootstrap mouseleave method call very late
|
||||
//before that this.$el and its contained removed because that tooltip sticks on page.
|
||||
$($.find('.tooltip.fade.in')).remove();
|
||||
this._super();
|
||||
}
|
||||
});
|
||||
|
@ -1287,7 +1291,6 @@ instance.web.Client = instance.web.Widget.extend({
|
|||
});
|
||||
instance.web.bus.on('click', this, function(ev) {
|
||||
$.fn.tooltip('destroy');
|
||||
this.$el.find('.oe_systray').find('div')
|
||||
if (!$(ev.target).is('input[type=file]')) {
|
||||
self.$el.find('.oe_dropdown_menu.oe_opened, .oe_dropdown_toggle.oe_opened').removeClass('oe_opened');
|
||||
}
|
||||
|
|
|
@ -1851,6 +1851,8 @@ instance.web.form.FormWidget = instance.web.Widget.extend(instance.web.form.Invi
|
|||
widget = widget || this;
|
||||
trigger = trigger || this.$el;
|
||||
options = _.extend({
|
||||
delay: { show: 750, hide: 0 },
|
||||
trigger: 'hover',
|
||||
title: function() {
|
||||
var template = widget.template + '.tooltip';
|
||||
if (!QWeb.has_template(template)) {
|
||||
|
|
Loading…
Reference in New Issue