summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/eventsource.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/eventsource.js b/core/js/eventsource.js
index 422f97657bd..30b942f59e8 100644
--- a/core/js/eventsource.js
+++ b/core/js/eventsource.js
@@ -44,8 +44,13 @@ OC.EventSource=function(src){
$('body').append(this.iframe);
this.useFallBack=true;
OC.EventSource.iframeCount++
-
}
+ //add close listener
+ this.listen('__internal__',function(data){
+ if(data=='close'){
+ this.close();
+ }
+ }.bind(this));
}
OC.EventSource.fallBackSources=[];
OC.EventSource.iframeCount=0;//number of fallback iframes