mirror of https://github.com/perkeep/perkeep.git
show the file dnd area when permanode type is unknown
This commit is contained in:
parent
97978b56d4
commit
490588d95a
|
@ -36,7 +36,7 @@
|
|||
</p>
|
||||
</form>
|
||||
|
||||
<div id='dnd' style="border: 2px dashed black; min-height: 250px; display: none;">
|
||||
<div id='dnd' style="border: 2px dashed black; min-height: 250px; display: block;">
|
||||
<form id="fileForm">
|
||||
<input type="file" id="fileInput" multiple="true" onchange="">
|
||||
<input type="submit" id="fileUploadBtn" value="Upload">
|
||||
|
|
|
@ -118,7 +118,7 @@ function onTypeChange(e) {
|
|||
var sel = document.getElementById("type");
|
||||
var dnd = document.getElementById("dnd");
|
||||
|
||||
if (sel.value == "collection") {
|
||||
if (sel.value == "collection" || sel.value == "") {
|
||||
dnd.style.display = "block";
|
||||
} else {
|
||||
dnd.style.display = "none";
|
||||
|
|
Loading…
Reference in New Issue