diff options
Diffstat (limited to 'src/static/js/pad.js')
-rw-r--r-- | src/static/js/pad.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js index 436f8bf0..c0c92d9c 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -325,6 +325,8 @@ function handshake() pad._afterHandshake(); initalized = true; + $("body").addClass(clientVars.readonly ? "readonly" : "readwrite") + padeditor.ace.callWithAce(function (ace) { ace.ace_setEditable(!clientVars.readonly); }); |