themes/openwrt.org: display error if Java Script is disabled
This commit is contained in:
parent
a5e34813e3
commit
f372cbda9a
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue