From 18a2c8040aaa5bfe221c344fc99198e9462a43ce Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 11 May 2014 23:15:16 +0200 Subject: Better way for callbacks to get form object by drigolin: http://www.pradoframework.com/forum/index.php?action=post;topic=17374.0 --- framework/Web/Javascripts/source/prado/activecontrols/ajax3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/Javascripts') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js index 3cb0e2da..f0be5cb4 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -156,7 +156,7 @@ Prado.CallbackRequest = jQuery.klass(Prado.PostBack, getForm: function() { - return jQuery('#PRADO_PAGESTATE').get(0).form; + return jQuery('#'+this.options.ID).parents('form:first').get(0); }, /** @@ -165,7 +165,7 @@ Prado.CallbackRequest = jQuery.klass(Prado.PostBack, */ getCallbackUrl : function() { - return jQuery('#PRADO_PAGESTATE').get(0).form.action; + return jQuery('#'+this.options.ID).parents('form:first').get(0).action; }, /** -- cgit v1.2.3