From fb6aa11d389705e7cfcf2c472c0528e4677c38be Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 21 Nov 2013 13:42:08 +0100 Subject: Fixed TTextBox's AutoPostBack=true --- framework/Web/Javascripts/source/prado/controls/controls.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 d576c3eb..69632cfb 100644 --- a/framework/Web/Javascripts/source/prado/controls/controls.js +++ b/framework/Web/Javascripts/source/prado/controls/controls.js @@ -369,7 +369,12 @@ Prado.WebUI.TTextBox = jQuery.klass(Prado.WebUI.PostBackControl, if(this.options['TextMode'] != 'MultiLine') this.observe(this.element, "keydown", this.handleReturnKey.bind(this)); if(this.options['AutoPostBack']==true) - 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); }, handleReturnKey : function(e) -- cgit v1.2.3