修复网页按钮配置功能UI错误

This commit is contained in:
nhkefus
2025-03-20 14:19:34 +08:00
parent 787e57439e
commit 2b2a77b5f5

View File

@@ -899,12 +899,6 @@ for (var i = 0; i < actions.length; i++) {
`;
}
document.getElementById("short_click_events_tb").innerHTML = tb_html;
// 手动将所有 .mdl-menu 挪到 body 下
document.querySelectorAll('.mdl-menu').forEach(menu => {
if (menu.parentElement !== document.body) {
document.body.appendChild(menu);
}
});
@@ -1254,11 +1248,6 @@ for (var i = 0; i < actions.length; i++) {
`;
}
document.getElementById("short_click_events_tb").innerHTML = tb_html;
document.querySelectorAll('.mdl-menu').forEach(menu => {
if (menu.parentElement !== document.body) {
document.body.appendChild(menu);
}
});
window.setTimeout(GetPowerRecord, 3000);
}, power_idx.toString());