summaryrefslogtreecommitdiff
path: root/static/longpolling.js
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-24 14:48:47 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-24 14:48:47 -0400
commit38dadcf24873ced5e8e375669d56022d0ce7cc16 (patch)
treebe5c915b40839bba9b2b7f5bc2322b99ce7d2d7e /static/longpolling.js
parentdd502bdae1be6a91b0c5f2f7996b1dc8d5f0cfc4 (diff)
license the webapp under the AGPL 3+
This means that anyone serving up the webapp to users as a service (ie, without providing any git-annex binary at all to the user) still needs to provide a link to the source code for it, including any modifications they may make. This may make git-annex be covered by the AGPL as a whole when it is built with the webapp. If in doubt, you should ask a lawyer. When git-annex is built with the webapp disabled, no AGPLed code is used. Even building in the assistant does not pull in AGPLed code.
Diffstat (limited to 'static/longpolling.js')
-rw-r--r--static/longpolling.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/static/longpolling.js b/static/longpolling.js
deleted file mode 100644
index 965c1d18d..000000000
--- a/static/longpolling.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Updates a div with a specified id, by polling an url,
-// which should return a new div, with the same id.
-
-connfails=0;
-
-function longpoll(url, divid, cont, fail) {
- $.ajax({
- 'url': url,
- 'dataType': 'html',
- 'success': function(data, status, jqxhr) {
- $('#' + divid).replaceWith(data);
- connfails=0;
- cont();
- },
- 'error': function(jqxhr, msg, e) {
- connfails=connfails+1;
- if (connfails > 3) {
- fail();
- }
- else {
- cont();
- }
- }
- });
-}