summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-28 10:21:38 +0300
committerMaxim Devaev <[email protected]>2021-07-28 10:21:47 +0300
commit75e9b673bcf8226b992e15cbd0a09e1b2ad465c0 (patch)
tree617e984bfb4d37cc7d5fed5bd1b5a766cefbd5c7
parenta32ce23fa8d833599d170eb269c219ae05132281 (diff)
fixed el variable
-rw-r--r--web/share/js/kvm/msd.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 74d5622e..0935161d 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -276,6 +276,7 @@ export function Msd() {
var __applyStateImageSelector = function() {
let s = __state;
let online = (s && s.online);
+ let el = $("msd-image-selector");
if (!online) {
el.options.length = 1; // Cleanup
@@ -285,8 +286,6 @@ export function Msd() {
return;
}
- let el = $("msd-image-selector");
-
if (el.options.length === 0) {
el.options[0] = new Option("~ Not selected ~", "", false, false);
} else {