Merge pull request #8284 from owncloud/fix_8280
Adjust renaming of directories with a dot in name
This commit is contained in:
commit
e68aaf1f5b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue