diff --git a/static/js/pad2.js b/static/js/pad2.js index bf314ab0b..05b77980b 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -95,7 +95,7 @@ function handshake() { socket.reconnect = false; socket.disconnect(); - alert("You have this Pad already opened in another Window/Tab"); + padconnectionstatus.disconnected("userdup"); return; } //yeah, the clientVars are here :). So we can start initalizing the Pad diff --git a/static/js/pad_connectionstatus.js b/static/js/pad_connectionstatus.js index 93675e328..6fa9b376d 100644 --- a/static/js/pad_connectionstatus.js +++ b/static/js/pad_connectionstatus.js @@ -43,6 +43,10 @@ var padconnectionstatus = (function() { var cls = 'modaldialog cboxdisconnected cboxdisconnected_'+k; $("#connectionbox").get(0).className = cls; padmodals.showModal("#connectionbox", 500); + + $('button#forcereconnect').click(function() { + window.location.reload(); + }); }, isFullyConnected: function() { return status.what == 'connected';