mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
dont allow chat input or name input on read only pads
This commit is contained in:
parent
818408cf49
commit
fe7ab21c84
1 changed files with 5 additions and 0 deletions
|
@ -322,6 +322,11 @@ function handshake()
|
|||
pad._afterHandshake();
|
||||
initalized = true;
|
||||
|
||||
if(clientVars.readonly){
|
||||
$('#myusernameedit').attr("disabled", true);
|
||||
$('#chatinput').attr("disabled", true);
|
||||
}
|
||||
|
||||
$("body").addClass(clientVars.readonly ? "readonly" : "readwrite")
|
||||
|
||||
padeditor.ace.callWithAce(function (ace) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue