Add missing variable declarations in JavaScript code
[project/luci.git] / applications / luci-app-olsr / luasrc / view / status-olsr / hna.htm
index 1c178f18103c017757af2cbb21013f67422d0fa7..f04d926918f0e556185c04c92342418addaee6f1 100644 (file)
@@ -47,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 {