mirror of
https://github.com/yhl452493373/frpc-panel.git
synced 2026-04-04 14:27:01 +08:00
complete full functions;
add some translations;
This commit is contained in:
@@ -17,16 +17,14 @@ var http_port, https_port;
|
||||
layui.element.on('nav(leftNav)', function (elem) {
|
||||
var id = elem.attr('id');
|
||||
var title = elem.text();
|
||||
if (id === 'overview') {
|
||||
loadOverview(lang, title.trim());
|
||||
} else if (elem.closest('.layui-nav-item').attr('id') === 'configure') {
|
||||
if (id === 'clientInfo') {
|
||||
loadClientInfo(lang, title.trim());
|
||||
} else if (id === 'proxiesStatus') {
|
||||
loadProxiesStatus(lang, title.trim());
|
||||
} else if (elem.closest('.layui-nav-item').attr('id') === 'proxies') {
|
||||
if (id != null && id.trim() !== '') {
|
||||
var suffix = elem.closest('.layui-nav-item').children('a').text().trim();
|
||||
if (id === 'common') {
|
||||
loadCommon(lang, title + " " + suffix);
|
||||
} else {
|
||||
loadProxyInfo(lang, title + " " + suffix, id);
|
||||
}
|
||||
loadProxyInfo(lang, title + " " + suffix, id);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user