function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { function makeTree(data,relPath,dropdown=false) { var result=''; if ('children' in data) { if (dropdown) { result += ''; } } return result; } /* code adapted from original menu.js of Doxygen, but made * bootstrap ready via * http://vadikom.github.io/smartmenus/src/demo/bootstrap-navbar.html */ $('#riot-navlist').append(makeTree(menudata,relPath)); if (searchEnabled) { $("#MSearchBox").remove(); if (serverSide) { $('#riot-searchform').attr("id", "FSearchBox"); $('#FSearchBox').attr("action", searchPage); $('#FSearchBox').attr("method", "get"); $('#FSearchBox div.form-group').append('
'); } else { $('#riot-searchform div.form-group').append('
'); } } }