From b8779f4a6a581cb378368eac398a262047397472 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 6 Jan 2007 03:36:40 +0000 Subject: Fixed #485. --- framework/Web/Javascripts/js/debug/ajax.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/Web/Javascripts/js/debug/ajax.js') diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js index c2822f10..9b1046ba 100644 --- a/framework/Web/Javascripts/js/debug/ajax.js +++ b/framework/Web/Javascripts/js/debug/ajax.js @@ -734,7 +734,7 @@ Prado.CallbackRequest.prototype = /** * Callback URL, same url as the current page. */ - this.url = window.location.href; + this.url = this.getCallbackUrl(); /** * Current callback request. @@ -758,6 +758,15 @@ Prado.CallbackRequest.prototype = }, options || {}); }, + /** + * Gets the url from the forms that contains the PRADO_PAGESTATE + * @return {String} callback url. + */ + getCallbackUrl : function() + { + return $('PRADO_PAGESTATE').form.action; + }, + /** * Sets the request parameter * @param {Object} parameter value -- cgit v1.2.3