mkws.switchView = function(view) {
debug("switchView: " + view);
-
+
var targets = document.getElementById('mkwsTargets');
var results = document.getElementById('mkwsResults') ||
document.getElementById('mkwsRecords');
debug("HTML switch");
$("#mkwsSwitch").html($("<a/>", {
- href: '#',
- onclick: "mkws.switchView(\'records\')",
+ href: "javascript:mkws.switchView('records')",
text: M("Records")
}));
$("#mkwsSwitch").append($("<span/>", { text: " | " }));
$("#mkwsSwitch").append($("<a/>", {
- href: '#',
- onclick: "mkws.switchView(\'targets\')",
+ href: "javascript:mkws.switchView('targets')",
text: M("Targets")
}));