Convert more findnode invocations to widgetNode.
authorMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 17:13:33 +0000 (18:13 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 17:13:33 +0000 (18:13 +0100)
NOTE TO SELF: findnode will not work during team construction.

src/mkws-team.js

index 126f534..b986988 100644 (file)
@@ -334,8 +334,8 @@ function team($, teamName) {
     function switchView(view) {
        var targets = widgetNode('Targets');
        var results = findnode('.mkwsResults,.mkwsRecords');
-       var blanket = findnode('.mkwsBlanket');
-       var motd    = findnode('.mkwsMOTD');
+       var blanket = widgetNode('Blanket');
+       var motd    = widgetNode('MOTD');
 
        switch(view) {
         case 'targets':