From 50e1e05a7f6d9061c68121558e7c2efdf987056a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 1 Mar 2017 22:32:05 +0300 Subject: juick-www: fix isReadonly in scripts --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main/static/scripts.js') 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, -- cgit v1.2.3