diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-03 23:41:16 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-03 23:41:16 +0100 |
commit | 4cdac46fcc8411607352defeb962602f93a5b26b (patch) | |
tree | 48ab7c98ca4e56fc2bf7f61d1ba9b69df863b79d | |
parent | 1d100dfb60e74cdf9a39e7e5b5bde075b2ac755a (diff) |
Ported TEventTriggeredCallback and TValueTriggeredCallback
-rw-r--r-- | framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js b/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js index d761c999..07d54d32 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js @@ -292,7 +292,7 @@ Prado.WebUI.TEventTriggeredCallback = jQuery.klass(Prado.WebUI.Control, onInit : function(options) { this.options = options || {} ; - var element = $(options['ControlID']); + var element = $('#'+options['ControlID']).get(0); if(element) this.observe(element, this.getEventName(element), this.doCallback.bind(this)); }, @@ -337,7 +337,7 @@ Prado.WebUI.TValueTriggeredCallback = jQuery.klass(Prado.WebUI.Control, { this.options = options || {} ; this.options.PropertyName = this.options.PropertyName || 'value'; - var element = $(options['ControlID']); + var element = $('#'+options['ControlID']).get(0); this.value = element ? element[this.options.PropertyName] : undefined; Prado.WebUI.TValueTriggeredCallback.register(this); this.startObserving(); @@ -356,7 +356,7 @@ Prado.WebUI.TValueTriggeredCallback = jQuery.klass(Prado.WebUI.Control, checkChanges : function() { - var element = $(this.options.ControlID); + var element = $('#'+this.options.ControlID).get(0); if(element) { var value = element[this.options.PropertyName]; |