From: Mike Taylor Date: Fri, 28 Feb 2014 15:42:49 +0000 (+0000) Subject: findnode() takes optional second argument teamName X-Git-Tag: 1.0.0~1378 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3ef390ce1f70178ffc78957ccb74216ce169fd59;p=mkws-moved-to-github.git findnode() takes optional second argument teamName --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index d7d7951..aeb0d12 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -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); }