mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Add a proper double connect Message
This commit is contained in:
parent
a444e870e0
commit
cc7cc8d884
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue