Commit d6857217 authored by yann300's avatar yann300

fix file rename

parent 937c64f0
......@@ -308,8 +308,10 @@ function fileExplorer (appAPI, files) {
function fileRenamed (oldName, newName, isFolder) {
var li = getElement(oldName)
if (li) li.parentElement.removeChild(li)
fileFocus(newName)
if (li) {
li.parentElement.removeChild(li)
fileAdded(newName)
}
}
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