fix regression in env popup

pull/284/head
nightwing 2016-04-04 02:13:38 +04:00
rodzic 40854a89b7
commit d3f65148fe
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -258,6 +258,7 @@ var EditableTree = function(tree) {
var ace = this.ace;
this.ace = null;
this.$lastAce = ace;
ace.renderer.freeze();
setTimeout(function() {
// doing this after timeout to allow rename event focus something else
@ -267,6 +268,7 @@ var EditableTree = function(tree) {
ace.wrapper.parentNode.removeChild(ace.wrapper);
if (wasFocused)
this.tree.focus();
this.$lastAce = null;
}.bind(this));
};
@ -386,6 +388,7 @@ var EditableTree = function(tree) {
var val = this.ace.getValue();
this._destroyEditor();
if (!cancel && this.origVal !== val) {
this.tree._emit("rename", {
@ -396,8 +399,6 @@ var EditableTree = function(tree) {
});
this.tree.provider._signal("change");
}
this._destroyEditor();
};
}).call(EditableTree.prototype);

Wyświetl plik

@ -520,7 +520,7 @@ define(function(require, exports, module) {
}
if (dirname(newpath) != dirname(path)) {
tree.edit.ace.blur(); // TODO this shouldn't be needed when apf focus works
tree.edit.$lastAce && tree.edit.$lastAce.blur(); // TODO this shouldn't be needed when apf focus works
question(
"Confirm move to a new folder",
"move '" + e.oldValue + "' to \n" +