diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-15 13:00:33 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-15 13:00:33 +0200 |
commit | e6eaefe106fe6752d9fc43a5083cd1c89dcb9c42 (patch) | |
tree | d7f63db3a83e1eed8a132f0e4d188228fdd59f40 | |
parent | 719daa862d1e3b17e0a833e45a34896da94ea046 (diff) | |
download | fileup-e6eaefe106fe6752d9fc43a5083cd1c89dcb9c42.tar.gz |
Multiple windows
-rw-r--r-- | loggedin.js | 9 | ||||
-rw-r--r-- | share_frontend.php | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/loggedin.js b/loggedin.js index d328351..3ea1469 100644 --- a/loggedin.js +++ b/loggedin.js @@ -745,6 +745,8 @@ function make_share_window(folder, filename) { password_label.innerText = "Password"; var password_input = mk(password_container, 'input'); password_input.type = 'password'; + password_input.autocomplete = 'off' + password_input.style.flex = "1 0 0"; password_input.onchange = (_e) => { data.password = password_input.value; @@ -912,6 +914,13 @@ function add_file_visuals(fileview) { focus.pwd.push(fileview.filename); openfile(fileview.is_directory); }], + ['Open in New Window', () => { + var new_pwd = focus.pwd.slice(); + new_pwd.push(fileview.filename); + var new_wnd = make_window(new_pwd); + focus_window(new_wnd); + openfile(fileview.is_directory); + }], // ['Open in New Window', () => {alert('not implemented')}], ]; diff --git a/share_frontend.php b/share_frontend.php index 0a13cd7..e196151 100644 --- a/share_frontend.php +++ b/share_frontend.php @@ -11,7 +11,7 @@ </head> </head> <body> - <form method="GET" action="<?php echo "/php/share.php"; ?>"> + <form method="GET" action="<?php echo "/php/share.php"; ?>" autocomplete="off"> <h2>Fileup</h2> <div class="content"> This file is password protected. |