diff options
author | Egil Moeller <egil.moller@freecode.no> | 2012-04-23 14:47:07 +0200 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2012-04-23 14:47:07 +0200 |
commit | ed7e254417dd3c4cab7e23b2ee85796b79cecbc7 (patch) | |
tree | 78fba87d0314c3362e75b5a43403131b744f150d /src/static/js/timeslider.js | |
parent | e5a22423bb9d15a7a46764cdced466490b006f31 (diff) | |
download | etherpad-lite-ed7e254417dd3c4cab7e23b2ee85796b79cecbc7.zip |
Disconnect handling and cleanup of unused code
Diffstat (limited to 'src/static/js/timeslider.js')
-rw-r--r-- | src/static/js/timeslider.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index 63b2a27d..098c52cb 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -71,6 +71,11 @@ function init() { sendSocketMsg("CLIENT_READY", {}); }); + socket.on('disconnect', function() + { + BroadcastSlider.showReconnectUI(); + }); + //route the incoming messages socket.on('message', function(message) { @@ -96,6 +101,12 @@ function init() { } else { $("#returnbutton").attr("href", document.location.href.substring(0,document.location.href.lastIndexOf("/"))); } + + $('button#forcereconnect').click(function() + { + window.location.reload(); + }); + }); } |