[imp] added placeholder attribute handling
bzr revid: nicolas.vanhoren@openerp.com-20120504131537-ald1zw9lojbc87qa
This commit is contained in:
parent
48b9985d4d
commit
f66db86718
|
@ -1827,6 +1827,7 @@ instance.web.form.FieldChar = instance.web.form.AbstractField.extend(_.extend({}
|
|||
init: function (field_manager, node) {
|
||||
this._super(field_manager, node);
|
||||
this.password = this.node.attrs.password === 'True' || this.node.attrs.password === '1';
|
||||
this.placeholder = this.node.attrs.placeholder || '';
|
||||
},
|
||||
initialize_content: function() {
|
||||
var self = this;
|
||||
|
|
|
@ -914,6 +914,7 @@
|
|||
t-att-tabindex="widget.node.attrs.tabindex"
|
||||
t-att-autofocus="widget.node.attrs.autofocus"
|
||||
t-attf-class="field_char #{widget.is_field_number ? 'oe-number' : ''}"
|
||||
t-att-placeholder="widget.placeholder"
|
||||
/><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
|
||||
</div>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue