var that = this;
var M = mkws.M;
- $(this.node).html('\
-<div class="mkwsBytarget mkwsTeam_' + this.team.name() + '">\
-No information available yet.\
-</div>');
+ $(this.node).html('No information available yet.');
$(this.node).css("display", "none");
this.team.queue("targets").subscribe(function(data) {
}
table += '</tbody></table>';
- var subnode = $(that.node).children('.mkwsBytarget');
- subnode.html(table);
+ $(that.node).html(table);
});
});
for(var i = firstClkbl; i <= lastClkbl; i++) {
var numLabel = i;
if(i == currentPage)
- numLabel = '<span class="mkwsSelected">' + i + '</span>';
+ numLabel = '<span class="mkwsCurrentPage">' + i + '</span>';
middle += '<a href="#" onclick="mkws.showPage(\'' + teamName + '\', ' + i + ')"> '
+ numLabel + ' </a>';
var that = this;
var M = mkws.M;
- var s = '<form name="mkwsSelect" class="mkwsSelect mkwsTeam_' + tname + '" action="" >';
+ var s = '<form>';
if (this.config.show_sort) {
s += M('Sort by') + ' ' + mkwsHtmlSort() + ' ';
}
mkws.registerWidgetType('Button', function() {});
mkws.registerWidgetType('Popup', function() {});
-// Not sure whether the following should have functionality:
-// Select HTMLFormElement
-// *-Container-wide HTMLTableCellElement
-// *-Container-narrow HTMLDivElement
-// Bytarget HTMLDivElement
+
$("div.mkwsSwitch").children('a').eq(1).trigger("click");
// now the target table must be visible
- expect($("div.mkwsBytarget").is(":visible")).toBe(true);
+ expect($("div.mkwsTargets").is(":visible")).toBe(true);
expect($("div.mkwsRecords").is(":visible")).toBe(false);
// wait a half second, to show the target view
// look for table header
runs(function () {
- expect($("div.mkwsBytarget").html()).toMatch(/Target ID/);
+ expect($("div.mkwsTargets").html()).toMatch(/Target ID/);
});
});
$("div.mkwsSwitch").children('a').eq(0).trigger("click");
// now the target table must be visible
- expect($("div.mkwsBytarget").is(":visible")).toBe(false);
+ expect($("div.mkwsTargets").is(":visible")).toBe(false);
expect($("div.mkwsRecords").is(":visible")).toBe(true);
});
});
padding: 0.3em;
}
-.mkwsBytarget table thead tr td {
+.mkwsTargets table thead tr td {
background-color: #132194;
color: white;
font-weight: bold;
padding: 0.2em 0.5em;
}
-.mkwsBytarget table tbody tr:nth-child(odd) {
+.mkwsTargets table tbody tr:nth-child(odd) {
background-color: #e0f0ff;
}
-.mkwsBytarget table tbody tr:nth-child(even) {
+.mkwsTargets table tbody tr:nth-child(even) {
background-color: #d0e0ff;
}
-.mkwsBytarget table tbody tr td {
+.mkwsTargets table tbody tr td {
padding: 0.2em 0.5em;
}
-.mkwsSelected {
+.mkwsCurrentPage {
padding: 0.1em 0.5em;
background: #508751;
color: white;