mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-14 10:10:29 +08:00
fixed el variable
This commit is contained in:
parent
a32ce23fa8
commit
75e9b673bc
@ -276,6 +276,7 @@ export function Msd() {
|
|||||||
var __applyStateImageSelector = function() {
|
var __applyStateImageSelector = function() {
|
||||||
let s = __state;
|
let s = __state;
|
||||||
let online = (s && s.online);
|
let online = (s && s.online);
|
||||||
|
let el = $("msd-image-selector");
|
||||||
|
|
||||||
if (!online) {
|
if (!online) {
|
||||||
el.options.length = 1; // Cleanup
|
el.options.length = 1; // Cleanup
|
||||||
@ -285,8 +286,6 @@ export function Msd() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let el = $("msd-image-selector");
|
|
||||||
|
|
||||||
if (el.options.length === 0) {
|
if (el.options.length === 0) {
|
||||||
el.options[0] = new Option("~ Not selected ~", "", false, false);
|
el.options[0] = new Option("~ Not selected ~", "", false, false);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user