mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-13 00:06:16 +02:00
dont allow chat input or name input on read only pads
This commit is contained in:
parent
818408cf49
commit
fe7ab21c84
@ -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…
x
Reference in New Issue
Block a user