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
This commit is contained in:
parent
c8801a41d8
commit
c2f7848aeb
|
@ -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