little improvement in add button

pull/144/head
Henrique Dias 2016-06-30 22:58:58 +01:00
parent 15e48bfad9
commit af02b66776
1 changed files with 5 additions and 1 deletions

View File

@ -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