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

Commit

Permalink
Merge pull request #9015 from adobe/ProjectManager
Browse files Browse the repository at this point in the history
Project manager revamp
  • Loading branch information
ingorichter committed Sep 22, 2014
2 parents f40ea05 + 5469b7c commit d094245
Show file tree
Hide file tree
Showing 39 changed files with 6,455 additions and 6,586 deletions.
3 changes: 2 additions & 1 deletion .brackets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"plusplus": true,
"devel": true,
"nomen": true,
"maxerr": 50
"maxerr": 50,
"es5": true
},
"defaultExtension": "js",
"path": {
Expand Down
1 change: 1 addition & 0 deletions src/command/Menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ define(function (require, exports, module) {
* Closes the context menu.
*/
ContextMenu.prototype.close = function () {
$(this).triggerHandler("beforeContextMenuClose");
$("#" + StringUtils.jQueryIdEscape(this.id)).removeClass("open");
};

Expand Down
2 changes: 1 addition & 1 deletion src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ define(function (require, exports, module) {
/** Show a textfield to rename whatever is currently selected in the sidebar (or current doc if nothing else selected) */
function handleFileRename() {
// Prefer selected sidebar item (which could be a folder)
var entry = ProjectManager.getSelectedItem();
var entry = ProjectManager.getContext();
if (!entry) {
// Else use current file (not selected in ProjectManager if not visible in tree or workingset)
entry = MainViewManager.getCurrentlyViewedFile();
Expand Down
Loading

0 comments on commit d094245

Please sign in to comment.