From 24bc5d26e5c711ef2b4e0bd5683b38a114000de3 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 9 May 2016 19:07:31 -0400 Subject: Changeing the assigned label --- ws2a/bugs.js | 2 +- ws2a/bugview.js | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ws2a/bugs.js b/ws2a/bugs.js index 71e23aa..9d8989e 100644 --- a/ws2a/bugs.js +++ b/ws2a/bugs.js @@ -32,7 +32,7 @@ function loadLastBugs() { if(status == "0:"){ statusicon = "Unassigned"; }else if(status.substring(0,2) == "1:"){ - statusicon = "" + status.substring(2) + ""; + statusicon = "" + status.substring(2) + ""; }else if(status == "2:"){ statusicon = "Closed"; } diff --git a/ws2a/bugview.js b/ws2a/bugview.js index 6342bd0..b5da460 100644 --- a/ws2a/bugview.js +++ b/ws2a/bugview.js @@ -36,7 +36,17 @@ function loadLastBugs() { document.getElementById("date").innerHTML = htmlEscape(parts[2]); document.getElementById("bugid").innerHTML = "Bug #" + bugnum; document.getElementById("shortdesc").innerHTML = htmlEscape(parts[3]); - document.getElementById("status").innerHTML = htmlEscape(parts[4]); + var statustext = parts[4]; + var statusicon = "" + if(status == "0:"){ + statusicon = "Unassigned"; + }else if(status.substring(0,2) == "1:"){ + statusicon = "" + status.substring(2) + ""; + }else if(status == "2:"){ + statusicon = "Closed"; + } + + document.getElementById("status").innerHTML = statusicon; document.getElementById("longdesc").innerHTML = htmlEscape(parts[5]); console.log(parts); var i = 6; -- cgit v1.2.3-70-g09d2