From: Mike Taylor Date: Tue, 20 Jan 2015 08:25:48 +0000 (+0000) Subject: targets widget removes leading "Client_" from states. X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b342468a08911f0cb727a9d0dcc4067b03c7564e;p=mkws-moved-to-github.git targets widget removes leading "Client_" from states. --- 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); }