From 4b36ffdf8aa8ebbdad22fda477d38ca83fd58852 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Wed, 30 Jun 2010 06:57:30 -0400 Subject: [PATCH] Bases error reporting on 'state' rather than 'hits'. --- js/pz2.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/pz2.js b/js/pz2.js index 7948ea0..3665c4e 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -637,6 +637,13 @@ pz2.prototype = bytarget[i][nodeName] = nodeText; } } + if (bytarget[i]["state"]=="Client_Disconnected") { + bytarget[i]["hits"] = "Error"; + } else if (bytarget[i]["state"]=="Client_Error") { + bytarget[i]["hits"] = "Error"; + } else if (bytarget[i]["state"]=="Client_Working") { + bytarget[i]["hits"] = "..."; + } } context.bytargetCounter++; -- 1.7.10.4