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 +- juick-www/src/main/webapp/WEB-INF/layouts/content.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-www') 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, diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/content.html b/juick-www/src/main/webapp/WEB-INF/layouts/content.html index 6a564034..76662b5d 100644 --- a/juick-www/src/main/webapp/WEB-INF/layouts/content.html +++ b/juick-www/src/main/webapp/WEB-INF/layouts/content.html @@ -12,7 +12,7 @@ - + {% include "views/partial/navigation" %}
{% block content %} -- cgit v1.2.3