dont allow chat input or name input on read only pads

pull/2678/head
John McLear 2015-05-19 17:52:43 +01:00
parent 818408cf49
commit fe7ab21c84
1 changed files with 5 additions and 0 deletions

View File

@ -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) {