X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=51bd5c159951e871f2fa0605ade1b91271c54c9f;hb=d5b0c54c73c244c321cbbb87b5686267f46e5535;hp=6fbf5de1b2a544703d21b28651b1453c8c36c37f;hpb=cef14d4f276c60f0b7bfd7f11736d619945c9706;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js
index 6fbf5de..51bd5c1 100644
--- a/src/mkws-widget-main.js
+++ b/src/mkws-widget-main.js
@@ -7,10 +7,7 @@ mkws.registerWidgetType('Targets', function() {
var that = this;
var M = mkws.M;
- $(this.node).html('\
-
\
-No information available yet.\
-
');
+ $(this.node).html('No information available yet.');
$(this.node).css("display", "none");
this.team.queue("targets").subscribe(function(data) {
@@ -31,8 +28,7 @@ No information available yet.\
}
table += '';
- var subnode = $(that.node).children('.mkwsBytarget');
- subnode.html(table);
+ $(that.node).html(table);
});
});
@@ -46,7 +42,7 @@ mkws.registerWidgetType('Stat', function() {
$(that.node).html('' + M('Status info') + '' +
' -- ' +
- '' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' +
+ '' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' +
' -- ' +
'' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '');
});
@@ -89,7 +85,7 @@ mkws.registerWidgetType('Pager', function() {
for(var i = firstClkbl; i <= lastClkbl; i++) {
var numLabel = i;
if(i == currentPage)
- numLabel = '' + i + '';
+ numLabel = '' + i + '';
middle += ' '
+ numLabel + ' ';
@@ -161,13 +157,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 + '';
});
@@ -238,7 +234,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);
@@ -279,7 +275,7 @@ mkws.registerWidgetType('Ranking', function() {
var that = this;
var M = mkws.M;
- var s = '