From: Mike Taylor Date: Fri, 23 Aug 2013 13:26:04 +0000 (+0100) Subject: When there is no mkwsTargets div, don't try to fill it. X-Git-Tag: 0.9.1~214 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=557fca6b65b234ed0df652e5ae434df1def6519b;p=mkws-moved-to-github.git When there is no mkwsTargets div, don't try to fill it. Part of MKWS-29 --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 025fa8a..9a9c682 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -235,6 +235,11 @@ function my_onrecord(data) { function my_onbytarget(data) { var targetDiv = document.getElementById("mkwsBytarget"); + if (!targetDiv) { + // No mkwsTargets div. + return; + } + var table ='' +'';
Target IDHitsDiagsRecordsState