Commit d6857217 authored by yann300's avatar yann300

fix file rename

parent 937c64f0
...@@ -308,8 +308,10 @@ function fileExplorer (appAPI, files) { ...@@ -308,8 +308,10 @@ function fileExplorer (appAPI, files) {
function fileRenamed (oldName, newName, isFolder) { function fileRenamed (oldName, newName, isFolder) {
var li = getElement(oldName) var li = getElement(oldName)
if (li) li.parentElement.removeChild(li) if (li) {
fileFocus(newName) li.parentElement.removeChild(li)
fileAdded(newName)
}
} }
function fileRenamedError (error) { function fileRenamedError (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment