findnode() takes optional second argument teamName
[mkws-moved-to-github.git] / 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);
     }