summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-11-03 23:41:16 +0100
committerFabio Bas <ctrlaltca@gmail.com>2013-11-26 11:42:49 +0100
commit60c5c81b837d828654498750b52882ce0448c1b9 (patch)
tree9c5c5bdaa643e0cb130f6fb001e0fdc5edaaa3d0 /framework/Web/Javascripts/source
parent23110ee4a62b887e3ccae4f42801535c008ee928 (diff)
Ported TEventTriggeredCallback and TValueTriggeredCallback
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js6
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];