for (var i = 0; i < data.length; i++) {
table += "<tr><td>" + data[i].id +
- "</td><td>" + data[i].hits +
- "</td><td>" + data[i].diagnostic +
- "</td><td>" + data[i].records +
- "</td><td>" + data[i].state + "</td></tr>";
+ "</td><td>" + data[i].hits +
+ "</td><td>" + data[i].diagnostic +
+ "</td><td>" + data[i].records +
+ "</td><td>" + data[i].state + "</td></tr>";
}
table += '</tbody></table>';
if (that.node.length === 0) alert("huh?!");
$(that.node).html('<span class="head">' + M('Status info') + '</span>' +
- ' -- ' +
- '<span class="clients">' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '</span>' +
- ' -- ' +
- '<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');
+ ' -- ' +
+ '<span class="clients">' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '</span>' +
+ ' -- ' +
+ '<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');
});
});
function drawPager(data) {
var teamName = that.team.name();
var s = '<div style="float: right">' + M('Displaying') + ': '
- + (data.start + 1) + ' ' + M('to') + ' ' + (data.start + data.num) +
- ' ' + M('of') + ' ' + data.merged + ' (' + M('found') + ': '
- + data.total + ')</div>';
+ + (data.start + 1) + ' ' + M('to') + ' ' + (data.start + data.num) +
+ ' ' + M('of') + ' ' + data.merged + ' (' + M('found') + ': '
+ + data.total + ')</div>';
//client indexes pages from 1 but pz2 from 0
var onsides = 6;
var currentPage = that.team.currentPage();
var firstClkbl = (currentPage - onsides > 0)
- ? currentPage - onsides
- : 1;
+ ? currentPage - onsides
+ : 1;
var lastClkbl = firstClkbl + 2*onsides < pages
- ? firstClkbl + 2*onsides
- : pages;
+ ? firstClkbl + 2*onsides
+ : pages;
var prev = '<span class="mkwsPrev"><< ' + M('Prev') + '</span> | ';
if (currentPage > 1)
- prev = '<a href="#" class="mkwsPrev" onclick="mkws.pagerPrev(\'' + teamName + '\');">'
- +'<< ' + M('Prev') + '</a> | ';
+ prev = '<a href="#" class="mkwsPrev" onclick="mkws.pagerPrev(\'' + teamName + '\');">'
+ +'<< ' + M('Prev') + '</a> | ';
var middle = '';
for(var i = firstClkbl; i <= lastClkbl; i++) {
- var numLabel = i;
- if(i == currentPage)
- numLabel = '<span class="mkwsSelected">' + i + '</span>';
+ var numLabel = i;
+ if(i == currentPage)
+ numLabel = '<span class="mkwsSelected">' + i + '</span>';
- middle += '<a href="#" onclick="mkws.showPage(\'' + teamName + '\', ' + i + ')"> '
- + numLabel + ' </a>';
+ middle += '<a href="#" onclick="mkws.showPage(\'' + teamName + '\', ' + i + ')"> '
+ + numLabel + ' </a>';
}
var next = ' | <span class="mkwsNext">' + M('Next') + ' >></span>';
if (pages - currentPage > 0)
- next = ' | <a href="#" class="mkwsNext" onclick="mkws.pagerNext(\'' + teamName + '\')">'
- + M('Next') + ' >></a>';
+ next = ' | <a href="#" class="mkwsNext" onclick="mkws.pagerNext(\'' + teamName + '\')">'
+ + M('Next') + ' >></a>';
var predots = '';
if (firstClkbl > 1)
- predots = '...';
+ predots = '...';
var postdots = '';
if (lastClkbl < pages)
- postdots = '...';
+ postdots = '...';
s += '<div style="float: clear">'
- + prev + predots + middle + postdots + next + '</div>';
+ + prev + predots + middle + postdots + next + '</div>';
return s;
}
// m_currentRecordId and m_currentRecordData members
// from the team object into this widget.
if (hit.recid == team.currentRecordId()) {
- if (team.currentRecordData())
- html.push(team.renderDetails(team.currentRecordData()));
+ if (team.currentRecordData())
+ html.push(team.renderDetails(team.currentRecordData()));
}
}
$(that.node).html(html.join(''));
filters.visitTargets(function(id, name) {
if (text) text += " | ";
text += M('source') + ': <a class="crossout" href="#" onclick="mkws.delimitTarget(\'' + teamName +
- "', '" + id + "'" + ');return false;">' + name + '</a>';
+ "', '" + id + "'" + ');return false;">' + name + '</a>';
});
filters.visitFields(function(field, value) {
if (text) text += " | ";
text += M(field) + ': <a class="crossout" href="#" onclick="mkws.delimitQuery(\'' + teamName +
- "', '" + field + "', '" + value + "'" +
- ');return false;">' + value + '</a>';
+ "', '" + field + "', '" + value + "'" +
+ ');return false;">' + value + '</a>';
});
$(that.node).html(text);
sort_html += '<option value="' + key + '"';
if (order == key || order == val) {
- sort_html += ' selected="selected"';
+ sort_html += ' selected="selected"';
}
sort_html += '>' + M(val) + '</option>';
}
perpage_html += '<option value="' + key + '"';
if (key == perpage) {
- perpage_html += ' selected="selected"';
+ perpage_html += ' selected="selected"';
}
perpage_html += '>' + key + '</option>';
}
mkws.registerWidgetType('Popup', function() {});
// Not sure whether the following should have functionality:
-// Select HTMLFormElement
-// *-Container-wide HTMLTableCellElement
-// *-Container-narrow HTMLDivElement
-// Bytarget HTMLDivElement
+// Select HTMLFormElement
+// *-Container-wide HTMLTableCellElement
+// *-Container-narrow HTMLDivElement
+// Bytarget HTMLDivElement