From b342468a08911f0cb727a9d0dcc4067b03c7564e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 20 Jan 2015 08:25:48 +0000 Subject: [PATCH] targets widget removes leading "Client_" from states. --- src/mkws-widget-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 5438348..a20e270 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -25,7 +25,7 @@ mkws.registerWidgetType('targets', function() { cur.diagnostic = data[i].diagnostic; cur.message = data[i].message; cur.records = data[i].records; - cur.state = data[i].state; + cur.state = data[i].state.replace(/^Client_/, ''); cleandata.push(cur); } -- 1.7.10.4