From 3bf7662dbdd5c7641e5a2758db88e89e31af7d68 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 14:44:01 +0200 Subject: The X Window System, part 4 of N --- loggedin.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'loggedin.js') diff --git a/loggedin.js b/loggedin.js index 8e0bf15..0f51c1b 100644 --- a/loggedin.js +++ b/loggedin.js @@ -210,8 +210,7 @@ function move_file(new_folder, filename) { xhr.send(data); } -function new_folder() { - var dirname = prompt(`Directory name`, "New Folder"); +function new_folder() { var dirname = prompt(`Directory name`, "New Folder"); if (!dirname) return; @@ -330,8 +329,7 @@ function make_window(pwd) { h2.onmousedown = (e) => { begin_drag(e, wnd_html); e.preventDefault(); - }; - + }; path = document.createElement('div'); path.classList.add('path'); @@ -347,6 +345,7 @@ function make_window(pwd) { { wnd.foldercontents = document.createElement('div'); + wnd.foldercontents.classList.add('foldercontents'); wnd_html.appendChild(wnd.foldercontents); var h3 = document.createElement('h3'); -- cgit v1.2.3