You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a folder the path to the new folder is not constructed correctly.
The code that is currently in master (and also in 2.4.0, which I am using) is:
var addFolder = function(parent, name) {
var newNode = '<li class="directory collapsed"><a data-path="' + parent + name + '/" href="#">' + name + '</a><ul class="jqueryFileTree" style="display: block;"></ul></li>';
var parentNode = $('#filetree').find('a[data-path="' + parent + '"]');
...
Must be:
var addFolder = function(parent, name) {
var dataPath = parent + '/' + name;
var newNode = '<li class="directory collapsed"><a data-path="' + dataPath + '/" href="#">' + name + '</a><ul class="jqueryFileTree" style="display: block;"></ul></li>';
var parentNode = $('#filetree').find('a[data-path="' + parent + '"]');
...
Unless I'am overlooking something?
Best regards,
Jos
The text was updated successfully, but these errors were encountered:
When adding a folder the path to the new folder is not constructed correctly.
The code that is currently in master (and also in 2.4.0, which I am using) is:
Must be:
Unless I'am overlooking something?
Best regards,
Jos
The text was updated successfully, but these errors were encountered: