summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/msd.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-09 11:11:12 +0300
committerDevaev Maxim <[email protected]>2020-07-09 11:11:12 +0300
commite390914c7ee8441088986a9e1e1dcc629c88aab9 (patch)
tree12e3e7f070a358408c840159775ef1674aafe9ee /web/share/js/kvm/msd.js
parentdc5b8c2522aaefe11a5d7ce1f27cadcd5d193d75 (diff)
fix
Diffstat (limited to 'web/share/js/kvm/msd.js')
-rw-r--r--web/share/js/kvm/msd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 629bed32..63c37631 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -321,7 +321,7 @@ export function Msd() {
var __refreshImageSelector = function() {
let el = $("msd-image-selector");
- if (el.options.length == 0) {
+ if (el.options.length === 0) {
el.options[0] = new Option("< Not selected >", "", false, false);
} else {
el.options.length = 1; // Cleanup
@@ -343,7 +343,7 @@ export function Msd() {
let option = new Option(name, name, false, false);
el.options[index] = option;
- if (__state.drive.image && __state.drive.image.name == name && __state.drive.image.in_storage) {
+ if (__state.drive.image && __state.drive.image.name === name && __state.drive.image.in_storage) {
select_index = index;
}
++index;