diff options
author | Vitaly Takmazov | 2017-03-01 22:32:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-03-01 22:38:09 +0300 |
commit | 50e1e05a7f6d9061c68121558e7c2efdf987056a (patch) | |
tree | 82625d33a27497d15bcc1094ba59103dc1193cbd /juick-www/src/main/static | |
parent | e65231c9069599ac88835dda733a924535e164fa (diff) |
juick-www: fix isReadonly in scripts
Diffstat (limited to 'juick-www/src/main/static')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 636e7be8..2fb23130 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -14,7 +14,7 @@ NodeList.prototype.forEach = Array.prototype.forEach; HTMLCollection.prototype.forEach = Array.prototype.forEach; function isReadonly() { - return document.getElementById('body').getAttribute('data-readonly'); + return document.getElementById('body').getAttribute('data-readonly') === 'true'; } var ws, |