themes/openwrt.org: display error if Java Script is disabled
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Oct 2010 23:10:24 +0000 (23:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Oct 2010 23:10:24 +0000 (23:10 +0000)
themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index ae9d45a97be31ff91eb92259892b776a6dd07fc7..91771a78c3b296d658c2c9bc912d629dc8288887 100644 (file)
@@ -830,6 +830,12 @@ div.cbi-tab-descr {
        padding: 0.5em;
 }
 
+.errorbox {
+       border: 1px solid #FF0000;
+       background-color: #FFCCCC;
+       padding: 5px;
+}
+
 #memorybar {
        width: 200px;
        height: 8px;
index 6e1853ebf512ea4aa0e58026248dc7eea7c2a8b5..ccb01ec30f65a4ce806f62447083fd0c7b5477c5 100644 (file)
@@ -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>