aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/scripts.js2
-rw-r--r--juick-www/src/main/webapp/WEB-INF/layouts/content.html2
2 files changed, 2 insertions, 2 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,
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 @@
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<link rel="icon" href="//i.juick.com/favicon.png" />
</head>
- <body>
+ <body id="body" data-readonly="{{ readonly }}">
{% include "views/partial/navigation" %}
<section id="content">
{% block content %}