switchView function uses new widget-type names.
authorMike Taylor <mike@indexdata.com>
Fri, 17 Oct 2014 16:11:31 +0000 (17:11 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 17 Oct 2014 16:11:31 +0000 (17:11 +0100)
src/mkws-team.js

index 0825553..ad0c77e 100644 (file)
@@ -340,10 +340,10 @@ mkws.makeTeam = function($, teamName) {
 
   // switching view between targets and records
   function switchView(view) {
-    var targets = widgetNode('Targets');
-    var results = widgetNode('Results') || widgetNode('Records');
-    var blanket = widgetNode('Blanket');
-    var motd    = widgetNode('MOTD');
+    var targets = widgetNode('targets');
+    var results = widgetNode('results') || widgetNode('records');
+    var blanket = widgetNode('blanket');
+    var motd    = widgetNode('motd');
 
     switch(view) {
     case 'targets':