Don't wrap mkwsStatus element's "Retrieved records" in a pointless <span>
[mkws-moved-to-github.git] / src / mkws-widget-main.js
index 51bd5c1..a9263ca 100644 (file)
@@ -40,11 +40,10 @@ 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>');
+                      M('Retrieved records') + ': ' + data.records + '/' + data.hits);
   });
 });