setvalue updates input if form is open

This commit is contained in:
vitalets
2013-01-08 19:28:54 +04:00
parent e615a3d89a
commit 24cc4ad61f
3 changed files with 14 additions and 0 deletions
CHANGELOG.txt
src/editable-form
test/unit

@ -323,6 +323,11 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
} else {
this.value = value;
}
//if form is visible, update input
if(this.$form && this.$form.is(':visible')) {
this.input.value2input(this.value);
}
}
};