Implement channel registration
This commit is contained in:
parent
8fdf3f7cd7
commit
18d599a7aa
5 changed files with 83 additions and 6 deletions
|
|
@ -15,6 +15,19 @@ function initCallbacks() {
|
|||
.innerHTML = "<h3>Disconnected from server</h3>";
|
||||
});
|
||||
|
||||
socket.on('channelNotRegistered', function() {
|
||||
showChannelRegistration();
|
||||
});
|
||||
|
||||
socket.on('registerChannel', function(data) {
|
||||
if(data.success) {
|
||||
$('#chregnotice').remove();
|
||||
}
|
||||
else {
|
||||
alert(data.error);
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('rank', function(data) {
|
||||
if(data.rank >= Rank.Moderator) {
|
||||
$('#playlist_controls').css("display", "block");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue