Do not emit static "Status info" text in the Stat widget: leave it to the CSS.
authorMike Taylor <mike@indexdata.com>
Fri, 9 May 2014 13:07:33 +0000 (14:07 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 9 May 2014 13:07:33 +0000 (14:07 +0100)
src/mkws-widget-main.js

index 51bd5c1..650ed91 100644 (file)
@@ -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('<span class="head">' + M('Status info') + '</span>' +
-                      ' -- ' +
+    $(that.node).html(' -- ' +
                       '<span class="mkwsClientCount">' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '</span>' +
                       ' -- ' +
                       '<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');