From 583a4b91d775b3e27a5a2cfd40ebd54681cd4287 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 8 Jan 2010 01:16:29 +0000 Subject: [PATCH] register doXMLHTTPsync as an alias to call doXMLHTTP synchronious --- phpgwapi/inc/class.egw_framework.inc.php | 1 + xajax.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 0e0d7c9965..153860b391 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -662,6 +662,7 @@ abstract class egw_framework $xajax->configure('javascript URI',$GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/inc/xajax'); $xajax->configure('waitCursor',false); $xajax->register(XAJAX_FUNCTION,'doXMLHTTP'); + $xajax->register(XAJAX_FUNCTION,'doXMLHTTP',array('mode' => "'synchronous'",'alias' => 'doXMLHTTPsync')); $java_script .= $xajax->getJavascript(); } diff --git a/xajax.php b/xajax.php index 0c7bf20d65..c3b1bf5e81 100644 --- a/xajax.php +++ b/xajax.php @@ -61,7 +61,7 @@ set_exception_handler('ajax_exception_handler'); * * Includs the header and set's up the eGW enviroment. * - * @return string with XML response from xajaxResponse::getXML() + * @return xajaxResponse object */ function doXMLHTTP() { @@ -150,4 +150,5 @@ function doXMLHTTP() $xajax = new xajax(); //$xajax->configure('requestURI',$_SERVER['PHP_SELF']); $xajax->register(XAJAX_FUNCTION,'doXMLHTTP'); +$xajax->register(XAJAX_FUNCTION,'doXMLHTTP',array('mode' => "'synchronous'",'alias' => 'doXMLHTTPsync')); $xajax->processRequest();