// Javscript for treemenu-type root pages // This depends on stuff from gavo.js, which must therefore be included // first. var JSONROOT = '/fancyroot/' function fetchIntoMain(dataURL, rowFormatter, queryPars) { destEl = $("#mainbox"); destEl.empty(); ul = $(''); destEl.append(ul); $.getJSON(dataURL, queryPars, function(data, textStatus, xhr) { data.map(function(row) { ul.append(rowFormatter(row)); }) } ) } function updateForInput() { words = $("#textsearch").val(); if (!words) { $("#mainbox").empty(); $("#mainbox").append($("