Reworked addScriptCall function

This commit is contained in:
Andreas Stöckel 2010-06-15 14:05:56 +00:00
parent 2181c9ca9e
commit a085ffb24c

View File

@ -191,7 +191,7 @@ class egw_json_response
public function sendResult() public function sendResult()
{ {
$this->sendHeader(); $this->sendHeader();
echo $this->getJSON(); echo($this->getJSON());
} }
/** /**
@ -387,7 +387,7 @@ class xajaxResponse extends egw_json_response
$args = func_get_args(); $args = func_get_args();
$func = array_shift($args); $func = array_shift($args);
$this->script("$func(".implode(",", $args).");"); $this->script("window['".$func."'].apply(window, ".json_encode($args).");");
} }
public function getXML() public function getXML()