From d2f31f38722818e98276bbcbb4d16ff30e5d5f20 Mon Sep 17 00:00:00 2001 From: Connor L Jackson Date: Mon, 17 Apr 2017 15:06:49 -0400 Subject: [PATCH] Couple temp fixes --- WebContent/html/javascript/listing.jsp | 4 ++-- WebContent/html/javascript/statistics.jsp | 29 +++++++++++------------ 2 files changed, 16 insertions(+), 17 deletions(-) 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 += '
' + deviceArray[i].name + '

' + deviceArray[i].description + '



' + html += '
' + deviceArray[i].name + '

' + deviceArray[i].description + '



' } 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