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

Commit

Permalink
Revert last change
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMalbran committed Apr 24, 2013
1 parent d0f21cb commit bc946e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/project/ProjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bc946e1

Please sign in to comment.