X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=aeb0d129f8dca8717da6753b54f8a7b4896c45a4;hb=3ef390ce1f70178ffc78957ccb74216ce169fd59;hp=cd0a18e32c7d4925a2346cac050505ff8d070dcb;hpb=d47fe777bdfaed4b12dfe7050e9da71502d36e0e;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index cd0a18e..aeb0d12 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -275,8 +275,9 @@ function team($, teamName) { // Finds the node of the specified class within the current team - function findnode(s) { - return $(s + '.mkwsTeam_' + m_teamName); + function findnode(selector, teamName) { + teamName ||= m_teamName; + return $(selector + '.mkwsTeam_' + m_teamName); }