Tighten up.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index a2f1ef9..43fc455 100644 (file)
@@ -189,10 +189,7 @@ function widget($, team, type, node) {
     mkws.debug("made widget(team=" + team + ", type=" + type + ", node=" + node);
 
     function promoteTargets() {
-       mkws.debug("promoting widget to type Targets");
        mkws.queue("targets").subscribe(function(data) {
-           mkws.debug("notified that there are targets");
-
            if (node.length === 0) alert("huh?!");
 
            var table ='<table><thead><tr>' +
@@ -212,7 +209,8 @@ function widget($, team, type, node) {
            }
            
            table += '</tbody></table>';
-           $(node).html(table);
+           var subnode = $(node).children('.mkwsBytarget');
+           subnode.html(table);
        });
     }