X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=c3eac87ffa036716c512a5dc1c05dc70f94b44da;hb=3aa819ed8eaa4b37333a105c8e266c1e8e1ff2bb;hp=980cde20b430d25ff66eea09c9df1dde52e060cc;hpb=b1114e3125c265d2f29efc0c516bbdcf9ef823fa;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 980cde2..c3eac87 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -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('' + M('Status info') + '' + + $(that.node).html(' -- ' + + '' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' + ' -- ' + - '' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' + - ' -- ' + - '' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + ''); + M('Retrieved records') + ': ' + data.records + '/' + data.hits); }); }); @@ -123,7 +122,7 @@ mkws.registerWidgetType('Records', function() { var hit = data.hits[i]; that.team.queue("record").publish(hit); var divId = team.recordElementId(hit.recid[0]); - html.push('
', renderSummary(hit), '
'); + html.push('
', renderSummary(hit), '
'); // ### At some point, we may be able to move the // m_currentRecordId and m_currentRecordData members // from the team object into this widget. @@ -157,13 +156,13 @@ mkws.registerWidgetType('Navi', function() { filters.visitTargets(function(id, name) { if (text) text += " | "; - text += M('source') + ': ' + name + ''; }); filters.visitFields(function(field, value) { if (text) text += " | "; - text += M(field) + ': ' + value + ''; });