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…
Reference in New Issue