Add missing variable declarations in JavaScript code
[project/luci.git] / applications / luci-app-olsr / luasrc / view / status-olsr / hna.htm
index 2dc4ce1730b1a851d0ced91aecc0664929f6c439..f04d926918f0e556185c04c92342418addaee6f1 100644 (file)
@@ -28,7 +28,6 @@ end
 
 <%+header%>
 
-<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
 <script type="text/javascript">//<![CDATA[
 XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 },
        function(x, info)
@@ -48,12 +47,14 @@ XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 },
                                linkgw = '<a href="http://' + hna.gateway + '/cgi-bin-status.html">' + hna.gateway + '</a>'
                        }
 
+                       var validity;
                        if (hna.validityTime != undefined) {
                                validity = hna.validityTime + 's'
                        } else {
                                validity = '-'
                        }
 
+                       var hostname;
                        if (hna.hostname != undefined) {
                                hostname = ' / <a href="http://' + hna.hostname + '/cgi-bin-status.html">' + hna.hostname + '</a>'
                        } else {