mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
web: added __gpio-label class by user's request
This commit is contained in:
parent
42efb73c98
commit
4a0029bab7
@ -134,7 +134,8 @@ export function Gpio(__recorder) {
|
||||
|
||||
var __createItem = function(item) {
|
||||
if (item.type === "label") {
|
||||
return item.text;
|
||||
// User may want to use HTML in the text so we don't perform escaping here.
|
||||
return `<span class="__gpio-label">${item.text}</span>`;
|
||||
|
||||
} else if (item.type === "input") {
|
||||
let e_ch_class = tools.escape(`__gpio-led-${item.channel}`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user