mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Fix error if field to translate is not textarea
This commit is contained in:
committed by
Timon Tschanz
parent
a3ac7e69ec
commit
9edd8ace29
@@ -109,8 +109,10 @@ var translateDialog = Dialog.extend({
|
|||||||
'data-value', values[f] || '');
|
'data-value', values[f] || '');
|
||||||
});
|
});
|
||||||
var textarea = this.$el.find('textarea.oe_translation_field');
|
var textarea = this.$el.find('textarea.oe_translation_field');
|
||||||
textarea.css({minHeight:'100px',});
|
if (textarea !== undefined && textarea[0] !== undefined) {
|
||||||
dom.autoresize(textarea, {parent: this.$el});
|
textarea.css({minHeight:'100px',});
|
||||||
|
dom.autoresize(textarea, {parent: this.$el});
|
||||||
|
}
|
||||||
$(window).resize();
|
$(window).resize();
|
||||||
this.initialize_html_fields(lang);
|
this.initialize_html_fields(lang);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user