Add a proper double connect Message

This commit is contained in:
Peter 'Pita' Martischka 2011-06-02 01:55:09 +01:00
parent a444e870e0
commit cc7cc8d884
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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';