Add placeholder text for #877

This commit is contained in:
Calvin Montgomery 2021-03-22 22:58:38 -07:00
parent da53decdd5
commit 8562b2173e
2 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.76.2",
"version": "3.76.3",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -1086,6 +1086,11 @@ function handlePermissionChange() {
}
$("#chatline").attr("disabled", !hasPermission("chat"));
if (!hasPermission("chat")) {
$("#chatline").attr("placeholder", "Chat permissions are restricted on this channel");
} else {
$("#chatline").attr("placeholder", "");
}
rebuildPlaylist();
}