Clean-up for MKWS-352 work.
authorMike Taylor <mike@indexdata.com>
Mon, 19 Jan 2015 12:34:06 +0000 (12:34 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 19 Jan 2015 12:34:06 +0000 (12:34 +0000)
Targets tempate is now passed the true ID as its "id" field rather
than the cached name associated with that ID.

src/mkws-widget-main.js

index 3049959..e04b87d 100644 (file)
@@ -20,7 +20,7 @@ mkws.registerWidgetType('targets', function() {
     for (var i = 0; i < data.length; i++) {
       var cur = {};
       cur.name = data[i].name;
-      cur.id = that.team.targetName(data[i].id);
+      cur.id = data[i].id;
       cur.hits = data[i].hits;
       cur.diagnostic = data[i].diagnostic;
       cur.message = data[i].message;