Prevent filetree from disappearing when clicking outside
This commit is contained in:
@ -328,7 +328,7 @@ var CodeOceanEditor = {
|
|||||||
|
|
||||||
initializeFileTree: function () {
|
initializeFileTree: function () {
|
||||||
$('#files').jstree($('#files').data('entries'));
|
$('#files').jstree($('#files').data('entries'));
|
||||||
$('#files').on('click', 'li.jstree-leaf', function (event) {
|
$('#files').on('click', 'li.jstree-leaf > a', function (event) {
|
||||||
this.setActiveFile(
|
this.setActiveFile(
|
||||||
$(event.target).parent().text(),
|
$(event.target).parent().text(),
|
||||||
parseInt($(event.target).parent().attr('id'))
|
parseInt($(event.target).parent().attr('id'))
|
||||||
|
Reference in New Issue
Block a user