diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-11-15 18:26:08 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-11-26 14:34:28 +0100 |
commit | 776be8d9f78e7c10099f068415f153fa69014166 (patch) | |
tree | dbb5ebd96f877f3a316d0f85ca9b86c9fc28ed16 /core/js | |
parent | fdc7a8b2043daeb74f9dc4d7221e13760787c1c0 (diff) | |
download | nextcloud-server-776be8d9f78e7c10099f068415f153fa69014166.tar.gz nextcloud-server-776be8d9f78e7c10099f068415f153fa69014166.zip |
all but the first parameter are introduced by &
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/eventsource.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/eventsource.js b/core/js/eventsource.js index e3ad7e3a671..7a744f7a6ce 100644 --- a/core/js/eventsource.js +++ b/core/js/eventsource.js @@ -42,7 +42,7 @@ OC.EventSource=function(src,data){ } dataStr+='requesttoken='+OC.EventSource.requesttoken; if(!this.useFallBack && typeof EventSource !='undefined'){ - this.source=new EventSource(src+'?'+dataStr); + this.source=new EventSource(src+'&'+dataStr); this.source.onmessage=function(e){ for(var i=0;i<this.typelessListeners.length;i++){ this.typelessListeners[i](JSON.parse(e.data)); @@ -54,7 +54,7 @@ OC.EventSource=function(src,data){ this.iframe=$('<iframe/>'); this.iframe.attr('id',iframeId); this.iframe.hide(); - this.iframe.attr('src',src+'?fallback=true&fallback_id='+OC.EventSource.iframeCount+'&'+dataStr); + this.iframe.attr('src',src+'&fallback=true&fallback_id='+OC.EventSource.iframeCount+'&'+dataStr); $('body').append(this.iframe); this.useFallBack=true; OC.EventSource.iframeCount++ @@ -90,7 +90,7 @@ OC.EventSource.prototype={ lastLength:0,//for fallback listen:function(type,callback){ if(callback && callback.call){ - + if(type){ if(this.useFallBack){ if(!this.listeners[type]){ |