mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +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.reconnect = false;
|
||||||
socket.disconnect();
|
socket.disconnect();
|
||||||
alert("You have this Pad already opened in another Window/Tab");
|
padconnectionstatus.disconnected("userdup");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//yeah, the clientVars are here :). So we can start initalizing the Pad
|
//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;
|
var cls = 'modaldialog cboxdisconnected cboxdisconnected_'+k;
|
||||||
$("#connectionbox").get(0).className = cls;
|
$("#connectionbox").get(0).className = cls;
|
||||||
padmodals.showModal("#connectionbox", 500);
|
padmodals.showModal("#connectionbox", 500);
|
||||||
|
|
||||||
|
$('button#forcereconnect').click(function() {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
isFullyConnected: function() {
|
isFullyConnected: function() {
|
||||||
return status.what == 'connected';
|
return status.what == 'connected';
|
||||||
|
|
Loading…
Reference in a new issue