register doXMLHTTPsync as an alias to call doXMLHTTP synchronious

This commit is contained in:
Ralf Becker 2010-01-08 01:16:29 +00:00
parent d9d303db6d
commit 583a4b91d7
2 changed files with 3 additions and 1 deletions

View File

@ -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();
}

View File

@ -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();