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 #1249 from srodrigu85/issue1028
Browse files Browse the repository at this point in the history
Fix issue #1028
  • Loading branch information
redmunds committed Jul 14, 2012
2 parents c958888 + 682f4fa commit bebcbce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ define(function (require, exports, module) {
ProjectManager = require("project/ProjectManager"),
DocumentManager = require("document/DocumentManager"),
EditorManager = require("editor/EditorManager"),
FileViewController = require("project/FileViewController"),
FileUtils = require("file/FileUtils"),
StringUtils = require("utils/StringUtils"),
Async = require("utils/Async"),
Expand Down Expand Up @@ -322,7 +323,8 @@ define(function (require, exports, module) {
var createWithSuggestedName = function (suggestedName) {
ProjectManager.createNewItem(baseDir, suggestedName, false)
.pipe(deferred.resolve, deferred.reject, deferred.notify)
.always(function () { fileNewInProgress = false; });
.always(function () { fileNewInProgress = false; })
.done(function (entry) { FileViewController.addToWorkingSetAndSelect(entry.fullPath); });
};

deferred.done(createWithSuggestedName);
Expand Down

0 comments on commit bebcbce

Please sign in to comment.