Skip to content
Snippets Groups Projects
Commit 1237b745 authored by nicolas.paschoud's avatar nicolas.paschoud
Browse files

Little modif for frontend

parent 2c28f085
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ function change_path(path){
document.getElementById("content-drive").innerHTML = "";
$.ajax({url: 'change-path'+path, success: function(result){
console.log(result);
document.getElementById("dir_name").innerHTML = "Directory : " + path;
appendLinkToParent(path, result[0].parent);
for (let i in result){
if (result[i].file_id){
new_file(result[i].file_name, result[i].file_id);
......@@ -18,6 +18,14 @@ function change_path(path){
}});
}
function appendLinkToParent(path, parent){
let el = document.getElementById("dir_name");
el.innerHTML = `
Directory : ${path}
`;
}
function login() {
let username = document.getElementById("username").value
let passwd = document.getElementById("passwd").value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment