From bc946e13f9912205135ef5bae1e4b940d1abe527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Malbr=C3=A1n?= Date: Wed, 24 Apr 2013 00:18:37 -0300 Subject: [PATCH] Revert last change --- src/project/ProjectManager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/project/ProjectManager.js b/src/project/ProjectManager.js index fbe8f33349f..ec8b8efa132 100644 --- a/src/project/ProjectManager.js +++ b/src/project/ProjectManager.js @@ -1302,14 +1302,14 @@ define(function (require, exports, module) { * @param {!Entry} entry FileEntry or DirectoryEntry to rename */ function renameItemInline(entry) { - // Don't try to rename again if we are already renaming - if (_isInRename(entry)) { - return; - } - // First make sure the item in the tree is visible - jsTree's rename API doesn't do anything to ensure inline input is visible showInTree(entry) .done(function (selected) { + // Don't try to rename again if we are already renaming + if (_isInRename(selected)) { + return; + } + var isFolder = selected.hasClass("jstree-open") || selected.hasClass("jstree-closed"); _projectTree.one("rename.jstree", function (event, data) {