diff options
author | Devaev Maxim <[email protected]> | 2018-07-21 12:42:56 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-21 12:42:56 +0300 |
commit | aa437673dde8230fc537b3a31914e979afdba45f (patch) | |
tree | e568c0cd064f98508bb9969587cdc255716c9e1a | |
parent | 3bdcdd580e45d2effe2554cdacd1c354f172e48d (diff) |
minor ui fixes
-rw-r--r-- | kvmd/web/index.html | 2 | ||||
-rw-r--r-- | kvmd/web/js/msd.js | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/kvmd/web/index.html b/kvmd/web/index.html index e286673c..094aa561 100644 --- a/kvmd/web/index.html +++ b/kvmd/web/index.html @@ -119,7 +119,7 @@ <hr> <input type="file" id="msd-select-new-image-file" style="display:none;" onchange="msd.selectNewImageFile(this)" /> - <button disabled id="msd-select-new-image-button" class="first" onclick="document.getElementById('msd-select-new-image-file').click();">• Upload new image <b>⇨</button><button disabled id="msd-upload-new-image-button" class="second-half-first" onclick="msd.clickButton(this);">• Start</button><button disabled id="msd-abort-uploading-button" class="second-half-second" onclick="msd.clickButton(this);">• Abort</button> + <button disabled id="msd-select-new-image-button" class="first" onclick="document.getElementById('msd-select-new-image-file').click();">• Upload new image ⇨</button><button disabled id="msd-upload-new-image-button" class="second-half-first" onclick="msd.clickButton(this);">• Start</button><button disabled id="msd-abort-uploading-button" class="second-half-second" onclick="msd.clickButton(this);">• Abort</button> <hr> <div id="msd-new-image" style="display:none"> diff --git a/kvmd/web/js/msd.js b/kvmd/web/js/msd.js index 61a70789..34ba72f7 100644 --- a/kvmd/web/js/msd.js +++ b/kvmd/web/js/msd.js @@ -124,10 +124,8 @@ var msd = new function() { if (__upload_http.readyState === 4) { if (__upload_http.status !== 200) { alert("Can't upload image to the Mass Storage Device:", __upload_http.responseText); - } else { - $("msd-progress").setAttribute("data-label", "Done"); - $("msd-progress-value").style.width = "100%"; } + el_input.value = ""; __upload_http = null; __applyState(); } |