mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -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();
|
pad._afterHandshake();
|
||||||
initalized = true;
|
initalized = true;
|
||||||
|
|
||||||
|
if(clientVars.readonly){
|
||||||
|
$('#myusernameedit').attr("disabled", true);
|
||||||
|
$('#chatinput').attr("disabled", true);
|
||||||
|
}
|
||||||
|
|
||||||
$("body").addClass(clientVars.readonly ? "readonly" : "readwrite")
|
$("body").addClass(clientVars.readonly ? "readonly" : "readwrite")
|
||||||
|
|
||||||
padeditor.ace.callWithAce(function (ace) {
|
padeditor.ace.callWithAce(function (ace) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue