From: Mike Taylor Date: Fri, 9 May 2014 13:07:33 +0000 (+0100) Subject: Do not emit static "Status info" text in the Stat widget: leave it to the CSS. X-Git-Tag: 1.0.0~689 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=1c08c02c5646499abb70f025e374ceb4517df311 Do not emit static "Status info" text in the Stat widget: leave it to the CSS. --- diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 51bd5c1..650ed91 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -40,8 +40,7 @@ mkws.registerWidgetType('Stat', function() { this.team.queue("stat").subscribe(function(data) { if (that.node.length === 0) alert("huh?!"); - $(that.node).html('' + M('Status info') + '' + - ' -- ' + + $(that.node).html(' -- ' + '' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' + ' -- ' + '' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '');