Merge pull request #8284 from owncloud/fix_8280

Adjust renaming of directories with a dot in name
This commit is contained in:
Thomas Müller 2014-04-23 16:06:50 +02:00
commit e68aaf1f5b
1 changed files with 2 additions and 1 deletions

View File

@ -572,7 +572,8 @@ window.FileList = {
input.focus();
//preselect input
var len = input.val().lastIndexOf('.');
if (len === -1) {
if ( len === -1 ||
tr.data('type') === 'dir' ) {
len = input.val().length;
}
input.selectRange(0, len);