From: Mike Taylor Date: Tue, 4 Mar 2014 12:42:42 +0000 (+0000) Subject: More consistency. X-Git-Tag: 1.0.0~1346 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=a69a66b88e3317022c375792df0b1c3689431496;p=mkws-moved-to-github.git More consistency. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index bb96eac..fe29a5e 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -258,10 +258,8 @@ function team($, teamName) { function onBytarget(data, teamName) { debug("target"); - var targetDiv = findnode('.mkwsBytarget'); - if (targetDiv.length === 0) { - return; - } + var node = findnode('.mkwsBytarget'); + if (node.length === 0) return; var table ='' + '' + @@ -280,17 +278,16 @@ function team($, teamName) { } table += '
' + M('Target ID') + '
'; - targetDiv.html(table); + node.html(table); } function onStat(data, teamName) { debug("stat"); - var statDiv = findnode('.mkwsStat'); - if (statDiv.length === 0) - return; + var node = findnode('.mkwsStat'); + if (node.length === 0) return; - statDiv.html('' + M('Status info') + '' + + node.html('' + M('Status info') + '' + ' -- ' + '' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' + ' -- ' +