diff --git a/WebContent/html/javascript/listing.jsp b/WebContent/html/javascript/listing.jsp
index e4e2c10..ff995e1 100644
--- a/WebContent/html/javascript/listing.jsp
+++ b/WebContent/html/javascript/listing.jsp
@@ -38,7 +38,7 @@ function showAll(){
var part1 = "nhpup.popup('";
var part2 = "');"
for(var i = 0; i < devices.length; i++){
- html += '
' + devices[i].name + '
' + devices[i].description + '
';
+ html += '
' + devices[i].name + '
' + devices[i].description + '
';
}
document.getElementById('devContainer').innerHTML = html;
var anchors = document.getElementsByClassName('availableAnchor');
@@ -67,7 +67,7 @@ function show(deviceArray){
var part2 = "');"
for (var i = 0; i < deviceArray.length; i++)
{
- html += '
'
+ html += '
'
}
document.getElementById('devContainer').innerHTML = html;
var anchors = document.getElementsByClassName('availableAnchor');
diff --git a/WebContent/html/javascript/statistics.jsp b/WebContent/html/javascript/statistics.jsp
index 3c200fd..c5de328 100644
--- a/WebContent/html/javascript/statistics.jsp
+++ b/WebContent/html/javascript/statistics.jsp
@@ -20,27 +20,27 @@ displayData();
function displayData() {
var html = "";
var totalDevices = 0;
- var availableDevices;
- var loanDevices;
- var lostDevices;
+ var availableDevices=0;
+ var loanDevices=0;
+ var lostDevices=0;
//umbrella sections
- var pendingDevices;
- var unavailDevices;
- var returnDevices;
- var brokenDevices;
+ var pendingDevices=0;
+ var unavailDevices=0;
+ var returnDevices=0;
+ var brokenDevices=0;
if (statistics.status != "" && statistics.count != ""){
for (var i = 0; i