import * as API from './api.js'; import * as UI from './ui.js'; var xClickCallback; export class foxMenu { static drawMenu(click_callback) { xClickCallback=click_callback; let items=API.session.getMenu(); items.xlogout={ title: { en: "Logout", ru: "Завершить сеанс" }, href: "logout" }; foxMenu.drawMenuNode(items,$("#menu_base_1")); } static drawMenuNode(items,ref,deep,lang, xmodkey) { if (lang==undefined) { lang=API.settings.get("language");} if (deep==undefined) { deep=0; } let xref=$("