Click an drag-target closes side-nav, fixes #79

This commit is contained in:
Daniel Perna 2018-03-30 17:04:33 +02:00
parent 5fed192115
commit a9759f32d9
2 changed files with 4 additions and 0 deletions

View file

@ -2169,6 +2169,8 @@ INDEX = Template(r"""<!DOCTYPE html>
closeOnClick: true,
draggable: true
});
// This fixes the dead spaces when trying to close the file browser
$(document).on('click', '.drag-target', function(){$('.button-collapse').sideNav('hide');})
listdir('.');
document.getElementById('savePrompt').checked = get_save_prompt();
});