mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 02:21:53 +08:00
fixed el variable
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user