Prevent filetree from disappearing when clicking outside

This commit is contained in:
Sebastian Serth
2021-01-23 12:19:15 +01:00
parent a933c8fdb3
commit 4bf2171fee

View File

@ -328,7 +328,7 @@ var CodeOceanEditor = {
initializeFileTree: function () {
$('#files').jstree($('#files').data('entries'));
$('#files').on('click', 'li.jstree-leaf', function (event) {
$('#files').on('click', 'li.jstree-leaf > a', function (event) {
this.setActiveFile(
$(event.target).parent().text(),
parseInt($(event.target).parent().attr('id'))