X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=a9263ca435e639d66852661f39a2c62307279e11;hb=f0e1fd4ccc8c447d546461081dd6d7482b75d318;hp=cf2c46f553e699428eaffa88b48adaac8ccf3069;hpb=7ae0d57e755ed6b96ae06cae7eb820e72cd270c1;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index cf2c46f..a9263ca 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); }); }); @@ -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 + ''; }); @@ -234,7 +233,7 @@ mkws.registerWidgetType('Search', function() { mkws.registerWidgetType('SearchForm', function() { - var team = this.team; + var team = this.team; $(this.node).submit(function() { var val = team.widget('Query').value(); team.newSearch(val);