targets widget removes leading "Client_" from states.
authorMike Taylor <mike@indexdata.com>
Tue, 20 Jan 2015 08:25:48 +0000 (08:25 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 20 Jan 2015 08:25:48 +0000 (08:25 +0000)
src/mkws-widget-main.js

index 5438348..a20e270 100644 (file)
@@ -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);
     }