[FIX] web: enable default_focus on html field

closes #8244
opw-647578
This commit is contained in:
Nicolas Lempereur 2015-08-26 15:31:50 +02:00
parent 607114ff00
commit 411a07a64e
1 changed files with 4 additions and 0 deletions

View File

@ -2765,6 +2765,10 @@ instance.web.form.FieldTextHtml = instance.web.form.AbstractField.extend(instanc
}
}
},
focus: function() {
var input = !this.get("effective_readonly") && this.$cleditor
return input ? input.focus() : false;
},
render_value: function() {
if (! this.get("effective_readonly")) {
this.$textarea.val(this.get('value') || '');