little improvement in add button
parent
15e48bfad9
commit
af02b66776
|
@ -511,10 +511,14 @@ document.addEventListener('listing', event => {
|
||||||
|
|
||||||
document.getElementById('new').addEventListener('click', event => {
|
document.getElementById('new').addEventListener('click', event => {
|
||||||
let newdir = document.getElementById('newdir');
|
let newdir = document.getElementById('newdir');
|
||||||
newdir.classList.toggle('enabled');
|
newdir.classList.add('enabled');
|
||||||
newdir.focus();
|
newdir.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.getElementById('newdir').addEventListener('blur', event => {
|
||||||
|
document.getElementById('newdir').classList.remove('enabled');
|
||||||
|
});
|
||||||
|
|
||||||
document.getElementById('newdir').addEventListener('keydown', newDirEvent);
|
document.getElementById('newdir').addEventListener('keydown', newDirEvent);
|
||||||
|
|
||||||
// Drag and Drop
|
// Drag and Drop
|
||||||
|
|
Loading…
Reference in New Issue