From 618765be31066b7d47bb602fac4cb32f1ff64cc5 Mon Sep 17 00:00:00 2001 From: amy Date: Wed, 22 Feb 2023 19:05:55 +0000 Subject: quick fix and split html --- src/window-utils.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/window-utils.js') diff --git a/src/window-utils.js b/src/window-utils.js index 79868f9..aad96fe 100644 --- a/src/window-utils.js +++ b/src/window-utils.js @@ -75,7 +75,7 @@ let util = { ttu = true t_ret += rec_bar_fun(f.content,target_full,target_ind+1,padding+5,patt+"/"+f.name) } - ret += "
"+(ttu?"v ":"> ")+f.name+"
" + t_ret + ret += "
"+(ttu?"v ":"> ")+f.name+"
" + t_ret //console.log(false,f.name) } @@ -100,7 +100,7 @@ let util = { } } }*/ - + console.log(inp.path) files+= "
"+bar_opt+"
" files += "
" files += "
" @@ -161,7 +161,7 @@ let util = { "'" + "
" + + "-content-button2-sub' style='width:70px;margin-left:22px;padding-left:15px;padding-right:15px;top:0;text-align: center;display:inline-block;'>cancel" + ""; document.getElementById(i + "-content-content").innerHTML = files; //console.log(tfs) @@ -173,6 +173,11 @@ let util = { res(inp.path+document.getElementById(i +"-fd-bottom-sel").value) document.getElementById(i+"-root").remove() + } + document.getElementById(i +"-content-button2-sub").onclick = () => { + rej("canceled by user") + document.getElementById(i+"-root").remove() + } document.getElementById(i+"-left-pane-resize-e").onmousedown = (ev) => { let elep = document.getElementById(i+"-fs-left-bar") -- cgit v1.2.3