Skip to content

Commit

Permalink
Add placeholder text for #877
Browse files Browse the repository at this point in the history
  • Loading branch information
calzoneman committed Mar 23, 2021
1 parent da53dec commit 8562b21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
5 changes: 5 additions & 0 deletions www/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8562b21

Please sign in to comment.