Warn, don't fail, on missing template
authorJason Skomorowski <jason@indexdata.com>
Mon, 4 Aug 2014 14:35:36 +0000 (10:35 -0400)
committerJason Skomorowski <jason@indexdata.com>
Mon, 4 Aug 2014 14:35:36 +0000 (10:35 -0400)
src/mkws-team.js

index 52f2ee5..3f610cf 100644 (file)
@@ -413,7 +413,8 @@ function team($, teamName) {
       return template;
     }
     else {
-      alert("Missing MKWS template for " + name);
+      mkws.log("No MKWS template for " + name);
+      return null;
     }  
   }
   that.loadTemplate = loadTemplate;