disconnect event

This commit is contained in:
Baris Usakli
2013-05-15 15:40:17 -04:00
parent 09c80b8289
commit ecc621e0c1
2 changed files with 21 additions and 2 deletions

View File

@@ -31,10 +31,16 @@ var socket,
contentEl.value = data.post;
});
socket.on('disconnect', function(data){
$('#disconnect-modal').show();
$('#reload-button').on('click',function(){
$('#disconnect-modal').hide();
window.location.reload();
});
});
},
async: false
});
// use unique alert_id to have multiple alerts visible at a time, use the same alert_id to fade out the current instance