forked from extern/egroupware
Reworked addScriptCall function
This commit is contained in:
parent
2181c9ca9e
commit
a085ffb24c
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user