diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-12-06 19:03:34 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-12-06 19:03:34 +0100 |
commit | de198e5bca106ab71ac1d62b45e332aef0601708 (patch) | |
tree | 06f6af723d2f4d8866def6aef931b1f763df19c1 /framework/Web | |
parent | c48165d6ec3c58f5c5587d2306f846dff8c5153f (diff) |
fixed TListBox && TImageButton AutoPostback
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/Javascripts/source/prado/controls/controls.js | 11 |
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); |