Example #1
0
function changeMode (modeName) {
    if (modeName === addTreeModeName) {
        modes.activateAddTreeMode();
    } else if (modeName === addResourceModeName) {
        modes.activateAddResourceMode();
    } else {
        modes.activateBrowseTreesMode();
    }
}
Example #2
0
 $('[data-action="addresource"]').click(function(e) {
     e.preventDefault();
     modes.activateAddResourceMode();
 });