From 8562b2173e5b404921b2475196cc1857ce63c357 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 22 Mar 2021 22:58:38 -0700 Subject: [PATCH] Add placeholder text for #877 --- package.json | 2 +- www/js/util.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 394d527b..7e4b7571 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/www/js/util.js b/www/js/util.js index 76a5be17..b9e2bc54 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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(); }