mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 19:52:58 +00:00
little improvement in add button
This commit is contained in:
parent
15e48bfad9
commit
af02b66776
@ -511,10 +511,14 @@ document.addEventListener('listing', event => {
|
||||
|
||||
document.getElementById('new').addEventListener('click', event => {
|
||||
let newdir = document.getElementById('newdir');
|
||||
newdir.classList.toggle('enabled');
|
||||
newdir.classList.add('enabled');
|
||||
newdir.focus();
|
||||
});
|
||||
|
||||
document.getElementById('newdir').addEventListener('blur', event => {
|
||||
document.getElementById('newdir').classList.remove('enabled');
|
||||
});
|
||||
|
||||
document.getElementById('newdir').addEventListener('keydown', newDirEvent);
|
||||
|
||||
// Drag and Drop
|
||||
|
Loading…
x
Reference in New Issue
Block a user