From: Mike Taylor Date: Tue, 4 Mar 2014 12:32:36 +0000 (+0000) Subject: Fix code that skips filling in onTarget area. X-Git-Tag: 1.0.0~1348 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=022ab45ebbc60b7c2f18529a53b2f4994848ff02;p=mkws-moved-to-github.git Fix code that skips filling in onTarget area. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index a15bfcd..d53e2b3 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -259,7 +259,7 @@ function team($, teamName) { function onBytarget(data, teamName) { debug("target"); var targetDiv = findnode('.mkwsBytarget'); - if (!targetDiv) { + if (targetDiv.length === 0) { return; }