Fix form and textarea bug

This commit is contained in:
YNH Webdev
2013-09-05 17:43:46 +02:00
parent 32518cfb41
commit 0c265f4f78
3 changed files with 37 additions and 17 deletions

View File

@@ -69,7 +69,7 @@ class WSF_TEXTAREA_CONTROL extends WSF_CONTROL
update: (state) ->
if state.text?
window.states[@control_name]['text'] = state.text
$el.val(state.text)
@$el.val(state.text)
#map class name to effective class
typemap =

View File

@@ -136,7 +136,7 @@
WSF_TEXTAREA_CONTROL.prototype.update = function(state) {
if (state.text != null) {
window.states[this.control_name]['text'] = state.text;
return $el.val(state.text);
return this.$el.val(state.text);
}
};