X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=161f61fe7355fbed9dc16c4691b413d8881a42c7;hb=82b78674032447e08477c34258c999fea92cbadc;hp=55d628d500f602b0bb81623e50bcc0ebe87a5369;hpb=044c8e76ecb0309ea75216f419f3eabcae9ab82d;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js
index 55d628d..161f61f 100644
--- a/src/mkws-widget-main.js
+++ b/src/mkws-widget-main.js
@@ -8,8 +8,8 @@ mkws.registerWidgetType('Targets', function() {
var that = this;
var M = mkws.M;
- this.jqnode.html('No information available yet.');
- this.jqnode.css("display", "none");
+ this.node.html('No information available yet.');
+ this.node.css("display", "none");
this.team.queue("targets").subscribe(function(data) {
var table ='
' +
@@ -29,7 +29,7 @@ mkws.registerWidgetType('Targets', function() {
}
table += '
';
- that.jqnode.html(table);
+ that.node.html(table);
});
});
@@ -39,7 +39,7 @@ mkws.registerWidgetType('Stat', function() {
var M = mkws.M;
this.team.queue("stat").subscribe(function(data) {
- that.jqnode.html(' -- ' +
+ that.node.html(' -- ' +
'' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '' +
' -- ' +
M('Retrieved records') + ': ' + data.records + '/' + data.hits);
@@ -52,7 +52,7 @@ mkws.registerWidgetType('Pager', function() {
var M = mkws.M;
this.team.queue("pager").subscribe(function(data) {
- that.jqnode.html(drawPager(data))
+ that.node.html(drawPager(data))
function drawPager(data) {
var teamName = that.team.name();
@@ -130,7 +130,7 @@ mkws.registerWidgetType('Records', function() {
html.push(team.renderDetails(team.currentRecordData()));
}
}
- that.jqnode.html(html.join(''));
+ that.node.html(html.join(''));
function renderSummary(hit) {
var template = team.loadTemplate(that.config.template || "Summary");
@@ -166,7 +166,7 @@ mkws.registerWidgetType('Navi', function() {
');return false;">' + value + '';
});
- that.jqnode.html(text);
+ that.node.html(text);
});
});
@@ -177,8 +177,8 @@ mkws.registerWidgetType('Navi', function() {
mkws.registerWidgetType('Sort', function() {
var that = this;
- this.jqnode.change(function() {
- that.team.set_sortOrder(that.jqnode.val());
+ this.node.change(function() {
+ that.team.set_sortOrder(that.node.val());
if (that.team.submitted()) {
that.team.reShow();
}
@@ -190,8 +190,8 @@ mkws.registerWidgetType('Sort', function() {
mkws.registerWidgetType('Perpage', function() {
var that = this;
- this.jqnode.change(function() {
- that.team.set_perpage(that.jqnode.val());
+ this.node.change(function() {
+ that.team.set_perpage(that.node.val());
if (that.team.submitted()) {
that.team.reShow();
}
@@ -204,7 +204,7 @@ mkws.registerWidgetType('Done', function() {
var that = this;
this.team.queue("complete").subscribe(function(n) {
- that.jqnode.html("Search complete: found " + n + " records");
+ that.node.html("Search complete: found " + n + " records");
});
});
@@ -212,7 +212,7 @@ mkws.registerWidgetType('Done', function() {
mkws.registerWidgetType('Switch', function() {
if (!this.config.show_switch) return;
var tname = this.team.name();
- this.jqnode.html('\
+ this.node.html('\
Records \
| \
Targets');
@@ -224,7 +224,7 @@ mkws.registerWidgetType('Search', function() {
var tname = this.team.name();
var M = mkws.M;
- this.jqnode.html('\
+ this.node.html('\