diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-04-21 09:35:15 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-23 16:04:01 +0200 |
commit | c2f7848aeb194aa6bf7c3da330e2750648880c48 (patch) | |
tree | 69c9efb0f9b85064645e9702ea01969aac9e62bb /apps/files | |
parent | c8801a41d871ae4633a6760a98dcdca71af92886 (diff) | |
download | nextcloud-server-c2f7848aeb194aa6bf7c3da330e2750648880c48.tar.gz nextcloud-server-c2f7848aeb194aa6bf7c3da330e2750648880c48.zip |
Adjust renaming of directories, fixes #8280
Directories will not be considered to have an extension, even if a dot is
found.
Stop Scrutinizer being annoyed
But the spaced version looked good!
Stop jsHint being annoyed
These code quality tools are really pestering
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 3 |
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); |