Fix findnode() logic for allowing default team-name to be overridden.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index d6d7ef9..710e47f 100644 (file)
@@ -276,8 +276,8 @@ function team($, teamName) {
 
     // Finds the node of the specified class within the current team
     function findnode(selector, teamName) {
-       teamName ||= m_teamName;
-        return $(selector + '.mkwsTeam_' + m_teamName);
+       teamName = teamName || m_teamName;
+        return $(selector + '.mkwsTeam_' + teamName);
     }