Fixed some stuff with the download functionality.

This commit is contained in:
Maxim Stewart 2018-10-19 14:08:33 -05:00
parent e4395cc7ce
commit b2415b8ec4
2 changed files with 7 additions and 4 deletions

View File

@ -45,8 +45,10 @@
background-color: rgba(7, 150, 159, 0.8);
position: fixed;
font-size: 2em;
overflow: auto;
overflow-x: auto;
overflow-y: scroll;
padding: 1.5em;
max-height: 632px;
}
#favesList > li:hover {
@ -125,6 +127,7 @@
height: 5em;
overflow-y: scroll;
width: 100%;
background-color: rgba(0,0,0,0.64);
}
/* Classes */

View File

@ -81,6 +81,7 @@ function clearDirCookie() {
function downloadItem() {
var partialPath = document.getElementById("path").innerHTML;
var brTag = document.createElement("BR");
var aTag = document.createElement("A");
var text = document.createTextNode(itemObj);
var fullPath = partialPath + itemObj;
@ -89,9 +90,8 @@ function downloadItem() {
aTag.setAttribute("id", itemObj);
aTag.append(text);
console.log(aTag);
document.getElementById("serverMsgView").append(aTag);
document.getElementById(itemObj).click();
document.getElementById("serverMsgView").append(aTag, brTag);
aTag.click();
}
function clearDlList() { document.getElementById("CLEARBTTN").click(); }