Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Select after sorting.
Browse files Browse the repository at this point in the history
  • Loading branch information
gruehle committed Oct 3, 2012
1 parent c16e87c commit edda6b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/project/ProjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -933,14 +933,15 @@ define(function (require, exports, module) {
data.rslt.obj.removeClass("jstree-leaf jstree-closed jstree-open")
.addClass("jstree-closed");
}
_projectTree.jstree("select_node", data.rslt.obj, true);

// If the new item is a folder, force a re-sort here. Windows sorts folders
// and files separately.
if (isFolder) {
_projectTree.jstree("sort", data.rslt.obj.parent());
}


_projectTree.jstree("select_node", data.rslt.obj, true);

// Notify listeners that the project model has changed
$(exports).triggerHandler("projectFilesChange");

Expand Down

0 comments on commit edda6b5

Please sign in to comment.