all but the first parameter are introduced by &

This commit is contained in:
Arthur Schiwon 2012-11-15 18:26:08 +01:00
parent fdc7a8b204
commit 776be8d9f7
2 changed files with 4 additions and 4 deletions

View File

@ -864,7 +864,7 @@ function getMimeIcon(mime, ready){
if(getMimeIcon.cache[mime]){ if(getMimeIcon.cache[mime]){
ready(getMimeIcon.cache[mime]); ready(getMimeIcon.cache[mime]);
}else{ }else{
$.get( OC.filePath('files','ajax','mimeicon.php')+'?mime='+mime, function(path){ $.get( OC.filePath('files','ajax','mimeicon.php')+'&mime='+mime, function(path){
getMimeIcon.cache[mime]=path; getMimeIcon.cache[mime]=path;
ready(getMimeIcon.cache[mime]); ready(getMimeIcon.cache[mime]);
}); });

View File

@ -42,7 +42,7 @@ OC.EventSource=function(src,data){
} }
dataStr+='requesttoken='+OC.EventSource.requesttoken; dataStr+='requesttoken='+OC.EventSource.requesttoken;
if(!this.useFallBack && typeof EventSource !='undefined'){ if(!this.useFallBack && typeof EventSource !='undefined'){
this.source=new EventSource(src+'?'+dataStr); this.source=new EventSource(src+'&'+dataStr);
this.source.onmessage=function(e){ this.source.onmessage=function(e){
for(var i=0;i<this.typelessListeners.length;i++){ for(var i=0;i<this.typelessListeners.length;i++){
this.typelessListeners[i](JSON.parse(e.data)); this.typelessListeners[i](JSON.parse(e.data));
@ -54,7 +54,7 @@ OC.EventSource=function(src,data){
this.iframe=$('<iframe/>'); this.iframe=$('<iframe/>');
this.iframe.attr('id',iframeId); this.iframe.attr('id',iframeId);
this.iframe.hide(); 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); $('body').append(this.iframe);
this.useFallBack=true; this.useFallBack=true;
OC.EventSource.iframeCount++ OC.EventSource.iframeCount++