show the file dnd area when permanode type is unknown

This commit is contained in:
Brad Fitzpatrick 2011-06-08 18:59:56 -07:00
parent 97978b56d4
commit 490588d95a
2 changed files with 2 additions and 2 deletions

View File

@ -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">

View File

@ -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";