summaryrefslogtreecommitdiffhomepage
path: root/themes/openwrt.org/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-11 23:10:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-11 23:10:24 +0000
commitf372cbda9a3f40d889b0f4a9da399dfdf1435518 (patch)
tree2486eb64d82cd6aaf68f5bd6ffa76d49dca7c09d /themes/openwrt.org/luasrc/view
parenta5e34813e36ce3e11bad13d65dca92ef1c1eb913 (diff)
themes/openwrt.org: display error if Java Script is disabled
Diffstat (limited to 'themes/openwrt.org/luasrc/view')
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
index 6e1853ebf5..ccb01ec30f 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -49,6 +49,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<script type="text/javascript" src="<%=resource%>/VarType.js"></script>
<script type="text/javascript" src="<%=resource%>/XHTML1.js"></script>
<script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script>
+<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
</head>
<body class="lang_<%=luci.i18n.context.lang%>">
@@ -161,3 +162,9 @@ else -%>
<div class="clear"></div>
</div>
<div id="maincontent">
+ <noscript>
+ <div class="errorbox">
+ <strong><%:Java Script required!%></strong><br />
+ <%:You must enable Java Script in your browser or LuCI will not work properly.%>
+ </div>
+ </noscript>