metreex-analysis.js
/**
 * Adds the treebank given by newTree to the sidebar
 * @param newTree
 */
Adds the treebank given by newTree to the sidebar
@param newTree
Adds the treebank given by newTree to the sidebar @param newTree
function addTreeToSidebar(newTree){
    var treeList = document.getElementById("treebankList"),
        checkbox = document.createElement("input");
    checkbox.type = "checkbox";
    checkbox.name = "treebankCheckbox";
    checkbox.value = newTree.id;
    checkbox.checked = true;
    var unloadButton = document.createElement("button");
    unloadButton.type = "button";
    unloadButton.className = "unloadButton";
    unloadButton.onclick = function(){unloadTreebankFromSidebar(newTree.id);};
    unloadButton.appendChild(document.createTextNode(" - "));
    var label = document.createElement("label");
    label.id = newTree.id;
    label.appendChild(checkbox);
    label.appendChild(document.createTextNode(newTree.getTitle()));
    label.appendChild(unloadButton);
    label.appendChild(document.createElement("br"));
    treeList.appendChild(label);
}
function addTreeToSidebar ( newTree ) { var treeList = document . getElementById ( "treebankList" ) , checkbox = document . createElement ( "input" ) ; checkbox . type = "checkbox" ; checkbox . name = "treebankCheckbox" ; checkbox . value = newTree . id ; checkbox . checked = true ; var unloadButton = document . createElement ( "button" ) ; unloadButton . type = "button" ; unloadButton . className = "unloadButton" ; unloadButton . onclick = function ( ) { unloadTreebankFromSidebar ( newTree . id ) ; } ; unloadButton . appendChild ( document . createTextNode ( " - " ) ) ; var label = document . createElement ( "label" ) ; label . id = newTree . id ; label . appendChild ( checkbox ) ; label . appendChild ( document . createTextNode ( newTree . getTitle ( ) ) ) ; label . appendChild ( unloadButton ) ; label . appendChild ( document . createElement ( "br" ) ) ; treeList . appendChild ( label ) ; }
Adds the treebank given by newTree to the sidebar
 @param newTree
Adds the treebank given by newTree to the sidebar @param newTree