From 5d1a8e16ee85481a67d8b59c44758fd90aec668a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 4 Oct 2013 10:07:34 +0000 Subject: [PATCH] Fire change event when input is changed via code --- etemplate/js/et2_core_inputWidget.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_inputWidget.js b/etemplate/js/et2_core_inputWidget.js index 6e5a32c196..f44a3ff9b8 100644 --- a/etemplate/js/et2_core_inputWidget.js +++ b/etemplate/js/et2_core_inputWidget.js @@ -140,13 +140,17 @@ var et2_inputWidget = et2_valueWidget.extend([et2_IInput,et2_ISubmitListener], }, set_value: function(_value) { - this._oldValue = _value; var node = this.getInputNode(); if (node) { $j(node).val(_value); + if(this.isAttached()) + { + $j(node).change(); + } } + this._oldValue = _value; }, set_id: function(_value) {