[FIX] Fixed form tooltips
bzr revid: fme@openerp.com-20120423110907-6ge2jkd33kic5b0h
This commit is contained in:
parent
d5af81aa0c
commit
947aba0b6e
|
@ -1416,7 +1416,7 @@ instance.web.form.Widget = instance.web.Widget.extend(_.extend({}, instance.web.
|
|||
opacity: 0.85,
|
||||
trigger: 'hover'
|
||||
}, options || {});
|
||||
trigger.tipsy(options);
|
||||
$(trigger).tipsy(options);
|
||||
},
|
||||
_build_view_fields_values: function(blacklist) {
|
||||
var a_dataset = this.view.dataset;
|
||||
|
@ -1704,7 +1704,7 @@ instance.web.form.AbstractField = instance.web.form.Widget.extend(/** @lends ins
|
|||
}, this));
|
||||
}
|
||||
if (instance.connection.debug) {
|
||||
this.do_attach_tooltip(this, this.$element);
|
||||
this.do_attach_tooltip(this, this.view.$element.find('label[for=' + this.id_for_label + ']')[0] || this.$element);
|
||||
}
|
||||
if (!this.disable_utility_classes) {
|
||||
var set_required = function() {
|
||||
|
|
|
@ -847,7 +847,7 @@
|
|||
<div class="oe_tooltip_string" t-if="widget.string">
|
||||
<t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
|
||||
</div>
|
||||
<p t-if="widget.help" class="oe_tooltip_help"><t t-esc="widget.help"/></p>
|
||||
<p t-if="widget.node.attrs.help || widget.field.help" class="oe_tooltip_help"><t t-esc="widget.node.attrs.help || widget.field.help"/></p>
|
||||
<ul t-if="debug" class="oe_tooltip_technical">
|
||||
<li data-item="field" t-if="widget.name">
|
||||
<span class="oe_tooltip_technical_title">Field:</span>
|
||||
|
|
Loading…
Reference in New Issue