port of approved pull request #442 - 'Always set renaming to false, also if renaming was aborted, to finalize the operation and show the file actions again.'

This commit is contained in:
Björn Schießle 2012-11-15 17:16:18 +01:00
parent fd060d4849
commit 8a93cc14f6
1 changed files with 1 additions and 1 deletions

View File

@ -160,11 +160,11 @@ var FileList={
OC.dialogs.alert(result.data.message, 'Error moving file');
newname = name;
}
tr.data('renaming',false);
});
}
}
tr.data('renaming',false);
tr.attr('data-file', newname);
var path = td.children('a.name').attr('href');
td.children('a.name').attr('href', path.replace(encodeURIComponent(name), encodeURIComponent(newname)));