mkwsHtmlSwitch no longer sets up the .mkwsSwitch element, because now
authorMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 16:23:18 +0000 (17:23 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 16:23:18 +0000 (17:23 +0100)
 the widget can do this itself.

src/mkws-team.js

index cf4794b..d52cc00 100644 (file)
@@ -550,13 +550,6 @@ function team($, teamName) {
 
 
     function mkwsHtmlSwitch() {
-       log("HTML switch for team " + m_teamName);
-
-       var node = findnode(".mkwsSwitch");
-       node.append($('<a href="#" onclick="mkws.switchView(\'' + m_teamName + '\', \'records\')">' + M('Records') + '</a>'));
-       node.append($("<span/>", { text: " | " }));
-       node.append($('<a href="#" onclick="mkws.switchView(\'' + m_teamName + '\', \'targets\')">' + M('Targets') + '</a>'));
-
        log("HTML targets");
        var node = findnode(".mkwsTargets");
        node.html('\