diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-30 22:24:19 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-30 22:24:19 -0400 |
commit | 6e40aed948c44348c977bb7ed7a9a6a84b9972ba (patch) | |
tree | 0e772d358481469c23bba935d0ed9ede3b197436 /static | |
parent | 2821f9f976b104bcb107f44a13ae7f2eb61f2d7a (diff) |
fix noscript mode to not allocate notification ids on each refresh
Now the javascript does an ajax call at the start to request the url
to use to poll, and the notification id is generated then, once we know
javascript is working.
Diffstat (limited to 'static')
-rw-r--r-- | static/longpolling.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/longpolling.js b/static/longpolling.js index 5b704acec..965c1d18d 100644 --- a/static/longpolling.js +++ b/static/longpolling.js @@ -1,5 +1,5 @@ -// Uses long-polling to update a div with a specified id, -// by polling an url, which should return a new div, with the same id. +// Updates a div with a specified id, by polling an url, +// which should return a new div, with the same id. connfails=0; |