diff options
author | amy <[email protected]> | 2023-02-22 19:05:55 +0000 |
---|---|---|
committer | amy <[email protected]> | 2023-02-22 19:05:55 +0000 |
commit | cf125cc28de2700fef426ecca557b965104d4076 (patch) | |
tree | 60910ade3b27dd3ad81eee903032c40d1f8fef0c /src/window-utils.js | |
parent | baa9b7762e817734f350070515c9419e9b87c68f (diff) |
quick fix and split html
Diffstat (limited to 'src/window-utils.js')
-rw-r--r-- | src/window-utils.js | 11 |
1 files changed, 8 insertions, 3 deletions
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 += "<div id='"+patt + "/"+ f.name + "' style='white-space:nowrap;width:100%;user-select:none;"+(ttu&&target_ind==target_full.length - 1?"background-color:rgba(0,0,0,.25);":"")+";height:20px;margin-left:"+padding+"'>"+(ttu?"v ":"> ")+f.name+"</div>" + t_ret + ret += "<div id='"+patt + "/"+ f.name + "/' style='white-space:nowrap;width:100%;user-select:none;"+(ttu&&target_ind==target_full.length - 1?"background-color:rgba(0,0,0,.25);":"")+";height:20px;margin-left:"+padding+"'>"+(ttu?"v ":"> ")+f.name+"</div>" + t_ret //console.log(false,f.name) } @@ -100,7 +100,7 @@ let util = { } } }*/ - + console.log(inp.path) files+= "<div id='"+i+"-fs-left-bar' onscroll='return false;' style='overflow:hidden;height:100%;width:"+l_b_width+"'>"+bar_opt+"</div>" files += "<div id='"+i+"-left-pane-resize-e' class='resize-e' style='position:relative;right:1;background-color:#aaaaaa;height:100%;'></div>" files += "<div id='"+i+"-fs-inner-cont' style='flex:1;align-content: flex-start;display:flex;flex-direction:row;flex-wrap:wrap'>" @@ -161,7 +161,7 @@ let util = { "'</select>" + "<button id='" + i + - "-content-button-sub' style='width:70px;margin-left:22px;padding-left:15px;padding-right:15px;top:0;text-align: center;display:inline-block;'>cancel</button></div>" + + "-content-button2-sub' style='width:70px;margin-left:22px;padding-left:15px;padding-right:15px;top:0;text-align: center;display:inline-block;'>cancel</button></div>" + ""; document.getElementById(i + "-content-content").innerHTML = files; //console.log(tfs) @@ -174,6 +174,11 @@ let util = { 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") let px = ev.clientX |