From de198e5bca106ab71ac1d62b45e332aef0601708 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 6 Dec 2013 19:03:34 +0100 Subject: fixed TListBox && TImageButton AutoPostback --- framework/Web/Javascripts/source/prado/controls/controls.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'framework/Web') 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); -- cgit v1.2.3