summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-12-06 19:03:34 +0100
committerFabio Bas <ctrlaltca@gmail.com>2013-12-06 19:03:34 +0100
commitde198e5bca106ab71ac1d62b45e332aef0601708 (patch)
tree06f6af723d2f4d8866def6aef931b1f763df19c1 /framework/Web
parentc48165d6ec3c58f5c5587d2306f846dff8c5153f (diff)
fixed TListBox && TImageButton AutoPostback
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/Javascripts/source/prado/controls/controls.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/source/prado/controls/controls.js b/framework/Web/Javascripts/source/prado/controls/controls.js
index 69632cfb..0f0b01f4 100644
--- a/framework/Web/Javascripts/source/prado/controls/controls.js
+++ b/framework/Web/Javascripts/source/prado/controls/controls.js
@@ -293,7 +293,7 @@ Prado.WebUI.TImageButton = jQuery.klass(Prado.WebUI.PostBackControl,
onPostBack : function(event, options)
{
this.addXYInput(event,options);
- Prado.PostBack(event, options);
+ new Prado.PostBack(event, options);
this.removeXYInput(event,options);
},
@@ -406,8 +406,13 @@ Prado.WebUI.TListControl = jQuery.klass(Prado.WebUI.PostBackControl,
{
onInit : function(options)
{
- this.observe(this.element, "change", jQuery.proxy(Prado.PostBack,this,options));
- }
+ this.observe(this.element, "change", jQuery.proxy(this.doPostback,this,options));
+ },
+
+ doPostback : function(options, event)
+ {
+ new Prado.PostBack(options, event);
+ },
});
Prado.WebUI.TListBox = jQuery.klass(Prado.WebUI.TListControl);