aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-30 23:20:47 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-30 23:20:47 +0100
commit1191b57b34ef63885bd6d05aff73f71de849a707 (patch)
tree8905ff5dfcbada471470fde0302a222dac4ff3ed
parent4522d19b4c214676b8a0d4067c3a2d1bc63618bc (diff)
parent6a1121ab2e91a362ed1e13e18c44fca40761f97a (diff)
downloadnextcloud-server-1191b57b34ef63885bd6d05aff73f71de849a707.tar.gz
nextcloud-server-1191b57b34ef63885bd6d05aff73f71de849a707.zip
Merge branch 'master' into filesystem
-rw-r--r--README3
-rw-r--r--apps/files_sharing/get.php1
-rw-r--r--core/js/eventsource.js7
-rw-r--r--lib/eventsource.php7
4 files changed, 14 insertions, 4 deletions
diff --git a/README b/README
index 60b18defd59..cd562b66c6c 100644
--- a/README
+++ b/README
@@ -1,10 +1,9 @@
ownCloud gives you freedom and control over your own data.
A personal cloud which runs on your own server.
-It is alpha software in development and should be treated accordingly.
http://ownCloud.org
-Installation instructions: http://owncloud.org/install
+Installation instructions: http://owncloud.org/support
Source code: http://gitorious.org/owncloud
Mailing list: http://mail.kde.org/mailman/listinfo/owncloud
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index ca95a68c6ce..c80b0c2ef03 100644
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -1,5 +1,4 @@
<?php
-$RUNTIME_NOAPPS=true; //no need to load the apps
$RUNTIME_NOSETUPFS=true; //don't setup the fs yet
require_once '../../lib/base.php';
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
diff --git a/lib/eventsource.php b/lib/eventsource.php
index c123eb4b837..b0450ff3d55 100644
--- a/lib/eventsource.php
+++ b/lib/eventsource.php
@@ -70,4 +70,11 @@ class OC_EventSource{
echo PHP_EOL;
flush();
}
+
+ /**
+ * close the connection of the even source
+ */
+ public function close(){
+ $this->send('__internal__','close');//server side closing can be an issue, let the client do it
+ }
} \ No newline at end of file