fix eventsource for ie
This commit is contained in:
parent
ebc7a6a0a6
commit
2f68b08491
|
@ -68,7 +68,7 @@ OC.EventSource=function(src,data){
|
||||||
OC.EventSource.fallBackSources=[];
|
OC.EventSource.fallBackSources=[];
|
||||||
OC.EventSource.iframeCount=0;//number of fallback iframes
|
OC.EventSource.iframeCount=0;//number of fallback iframes
|
||||||
OC.EventSource.fallBackCallBack=function(id,type,data){
|
OC.EventSource.fallBackCallBack=function(id,type,data){
|
||||||
OC.EventSource.fallBackSources[id].fallBackCallBack(type,JSON.parse(data));
|
OC.EventSource.fallBackSources[id].fallBackCallBack(type,data);
|
||||||
}
|
}
|
||||||
OC.EventSource.prototype={
|
OC.EventSource.prototype={
|
||||||
typelessListeners:[],
|
typelessListeners:[],
|
||||||
|
|
|
@ -59,7 +59,7 @@ class OC_EventSource{
|
||||||
$type=null;
|
$type=null;
|
||||||
}
|
}
|
||||||
if($this->fallback){
|
if($this->fallback){
|
||||||
$response='<script type="text/javascript">window.parent.OC.EventSource.fallBackCallBack('.$this->fallBackId.',"'.$type.'","'.json_encode($data).'")</script>'.PHP_EOL;
|
$response='<script type="text/javascript">window.parent.OC.EventSource.fallBackCallBack('.$this->fallBackId.',"'.$type.'",'.json_encode($data).')</script>'.PHP_EOL;
|
||||||
echo $response;
|
echo $response;
|
||||||
}else{
|
}else{
|
||||||
if($type){
|
if($type){
|
||||||
|
|
Loading…
Reference in New Issue