summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-11-29 01:58:07 +0300
committerDevaev Maxim <[email protected]>2019-11-29 01:58:07 +0300
commitf6fab6415e86daa4e4372412968d70ca6bdf8620 (patch)
treeb64db8acdb95767796f5d3ddbcce5b6d0aa0fc23 /web
parent3d8f16b9c60cc2ef8547e62f968b5faedf1d8094 (diff)
common feature-disabled class
Diffstat (limited to 'web')
-rw-r--r--web/kvm/index.html10
-rw-r--r--web/share/css/kvm/msd.css1
-rw-r--r--web/share/js/kvm/msd.js6
3 files changed, 8 insertions, 9 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index d5bdeeba..ec8ee6ac 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -214,7 +214,7 @@
</table>
<hr>
- <table class="msd-info msd-single-storage msd-feature-disabled">
+ <table class="msd-info msd-single-storage feature-disabled">
<tr>
<td>Current image:</td>
<td id="msd-image-name" class="msd-info-value"></td>
@@ -228,15 +228,15 @@
<td id="msd-storage-size" class="msd-info-value"></td>
</tr>
</table>
- <table class="msd-info msd-multi-storage msd-feature-disabled">
+ <table class="msd-info msd-multi-storage feature-disabled">
<tr>
<td>Image:</td>
<td width="100%"><select disabled id="msd-image-selector"></select></td>
<td><button disabled id="msd-remove-image">Remove</button></td>
</tr>
</table>
- <table class="msd-info msd-multi-storage msd-feature-disabled">
- <tr class="msd-cdrom-emulation msd-feature-disabled">
+ <table class="msd-info msd-multi-storage feature-disabled">
+ <tr class="msd-cdrom-emulation feature-disabled">
<td>Emulate CD-ROM drive:</td>
<td>
<div class="switch-box msd-cdrom-switch-box">
@@ -251,7 +251,7 @@
</table>
<hr>
- <div class="msd-multi-storage msd-feature-disabled">
+ <div class="msd-multi-storage feature-disabled">
<div class="menu-item-content-text">
<div id="msd-storage-progress" class="progress">
<span id="msd-storage-progress-value" class="progress-value"></span>
diff --git a/web/share/css/kvm/msd.css b/web/share/css/kvm/msd.css
index 1d15eba7..df41593c 100644
--- a/web/share/css/kvm/msd.css
+++ b/web/share/css/kvm/msd.css
@@ -24,7 +24,6 @@ div#msd-menu {
width: 450px;
}
-div#msd-menu .msd-feature-disabled,
div#msd-menu div.msd-message,
div#msd-menu input.msd-message {
display: none;
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 7f774b69..629bed32 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -283,13 +283,13 @@ export function Msd() {
var __toggleMsdFeatures = function() {
for (let el of $$$(".msd-single-storage")) {
- el.classList.toggle("msd-feature-disabled", __state.features.multi);
+ el.classList.toggle("feature-disabled", __state.features.multi);
}
for (let el of $$$(".msd-multi-storage")) {
- el.classList.toggle("msd-feature-disabled", !__state.features.multi);
+ el.classList.toggle("feature-disabled", !__state.features.multi);
}
for (let el of $$$(".msd-cdrom-emulation")) {
- el.classList.toggle("msd-feature-disabled", !__state.features.cdrom);
+ el.classList.toggle("feature-disabled", !__state.features.cdrom);
}
};