var that = this;
var M = mkws.M;
- $(this.node).html('No information available yet.');
- $(this.node).css("display", "none");
+ this.jqnode.html('No information available yet.');
+ this.jqnode.css("display", "none");
this.team.queue("targets").subscribe(function(data) {
var table ='<table><thead><tr>' +
}
table += '</tbody></table>';
- $(that.node).html(table);
+ that.jqnode.html(table);
});
});
var M = mkws.M;
this.team.queue("stat").subscribe(function(data) {
- if (that.node.length === 0) alert("huh?!");
-
- $(that.node).html(' -- ' +
+ that.jqnode.html(' -- ' +
'<span class="mkwsClientCount">' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '</span>' +
' -- ' +
M('Retrieved records') + ': ' + data.records + '/' + data.hits);
var M = mkws.M;
this.team.queue("pager").subscribe(function(data) {
- $(that.node).html(drawPager(data))
+ that.jqnode.html(drawPager(data))
function drawPager(data) {
var teamName = that.team.name();
html.push(team.renderDetails(team.currentRecordData()));
}
}
- $(that.node).html(html.join(''));
+ that.jqnode.html(html.join(''));
function renderSummary(hit) {
var template = team.loadTemplate(that.config.template || "Summary");
');return false;">' + value + '</a>';
});
- $(that.node).html(text);
+ that.jqnode.html(text);
});
});
mkws.registerWidgetType('Sort', function() {
var that = this;
- $(this.node).change(function() {
- that.team.set_sortOrder($(that.node).val());
+ this.jqnode.change(function() {
+ that.team.set_sortOrder(that.jqnode.val());
if (that.team.submitted()) {
that.team.reShow();
}
mkws.registerWidgetType('Perpage', function() {
var that = this;
- $(this.node).change(function() {
- that.team.set_perpage($(that.node).val());
+ this.jqnode.change(function() {
+ that.team.set_perpage(that.jqnode.val());
if (that.team.submitted()) {
that.team.reShow();
}
var that = this;
this.team.queue("complete").subscribe(function(n) {
- $(that.node).html("Search complete: found " + n + " records");
+ that.jqnode.html("Search complete: found " + n + " records");
});
});
mkws.registerWidgetType('Switch', function() {
var tname = this.team.name();
- $(this.node).html('\
+ this.jqnode.html('\
<a href="#" onclick="mkws.switchView(\'' + tname + '\', \'records\')">Records</a><span> \
| \
</span><a href="#" onclick="mkws.switchView(\'' + tname + '\', \'targets\')">Targets</a>');
var tname = this.team.name();
var M = mkws.M;
- $(this.node).html('\
+ this.jqnode.html('\
<form name="mkwsSearchForm" class="mkwsSearchForm mkwsTeam_' + tname + '" action="" >\
<input class="mkwsQuery mkwsTeam_' + tname + '" type="text" size="' + this.config.query_width + '" />\
<input class="mkwsButton mkwsTeam_' + tname + '" type="submit" value="' + M('Search') + '" />\
mkws.registerWidgetType('SearchForm', function() {
var team = this.team;
- $(this.node).submit(function() {
+ this.jqnode.submit(function() {
var val = team.widget('Query').value();
team.newSearch(val);
return false;
mkws.registerWidgetType('Results', function() {
var tname = this.team.name();
- $(this.node).html('\
+ this.jqnode.html('\
<table width="100%" border="0" cellpadding="6" cellspacing="0">\
<tr>\
<td class="mkwsTermlists-Container-wide mkwsTeam_' + tname + '" width="250" valign="top">\
}
s += '</form>';
- $(this.node).html(s);
+ this.jqnode.html(s);
function mkwsHtmlSort() {
}
}
- $(this.node).html(data);
+ this.jqnode.html(data);
widget.hideWhenNarrow(this);
var container = this.team.widget('MOTDContainer');
if (container) {
// Move the MOTD from the provided element down into the container
- $(this.node).appendTo(container.node);
+ this.jqnode.appendTo(container.node); // #### can this be container.jqnode
}
});