Fix code that skips filling in onTarget area.
authorMike Taylor <mike@indexdata.com>
Tue, 4 Mar 2014 12:32:36 +0000 (12:32 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 4 Mar 2014 12:32:36 +0000 (12:32 +0000)
tools/htdocs/mkws.js

index a15bfcd..d53e2b3 100644 (file)
@@ -259,7 +259,7 @@ function team($, teamName) {
     function onBytarget(data, teamName) {
        debug("target");
        var targetDiv = findnode('.mkwsBytarget');
-       if (!targetDiv) {
+       if (targetDiv.length === 0) {
            return;
        }