findnode() takes optional second argument teamName
authorMike Taylor <mike@indexdata.com>
Fri, 28 Feb 2014 15:42:49 +0000 (15:42 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 28 Feb 2014 15:42:49 +0000 (15:42 +0000)
tools/htdocs/mkws.js

index d7d7951..aeb0d12 100644 (file)
@@ -275,7 +275,8 @@ function team($, teamName) {
 
 
     // Finds the node of the specified class within the current team
-    function findnode(selector) {
+    function findnode(selector, teamName) {
+       teamName ||= m_teamName;
         return $(selector + '.mkwsTeam_' + m_teamName);
     }