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

View File

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