summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-23 16:06:50 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-23 16:06:50 +0200
commite68aaf1f5bffafe6a390b3a85a14f583cc689168 (patch)
tree69c9efb0f9b85064645e9702ea01969aac9e62bb /apps/files
parentc8801a41d871ae4633a6760a98dcdca71af92886 (diff)
parentc2f7848aeb194aa6bf7c3da330e2750648880c48 (diff)
downloadnextcloud-server-e68aaf1f5bffafe6a390b3a85a14f583cc689168.tar.gz
nextcloud-server-e68aaf1f5bffafe6a390b3a85a14f583cc689168.zip
Merge pull request #8284 from owncloud/fix_8280
Adjust renaming of directories with a dot in name
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 9c749bb8f34..ab2601c5fb2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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);