Skip to content

Commit

Permalink
bugfix: broken "expandedFolder" query param (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
psolom committed Nov 12, 2016
1 parent 17b8f8f commit b810f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/filemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ $.richFmPlugin = function(element, options)

var expandFolderDefault = function (parentNode) {
if (fullexpandedFolder !== null) {
if(!parentNode) {
parentNode = tree_model.treeData
}

// looking for node that starts with specified path
var node = tree_model.findByFilter(function (node) {
return (fullexpandedFolder.indexOf(node.id) === 0);
Expand Down
Loading

0 comments on commit b810f9f

Please sign in to comment.