summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-05-11 23:15:16 +0200
committerFabio Bas <ctrlaltca@gmail.com>2014-05-11 23:15:22 +0200
commit18a2c8040aaa5bfe221c344fc99198e9462a43ce (patch)
treecafa8312ee8beca8db545358276a33af2f8d588e /framework
parenteef2f2bb5c705079ae1186509063bc9e63c85bc0 (diff)
Better way for callbacks to get form object
by drigolin: http://www.pradoframework.com/forum/index.php?action=post;topic=17374.0
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/ajax3.js4
1 files changed, 2 insertions, 2 deletions
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;
},
/**