diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-03-26 10:29:01 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-03-26 10:35:27 +0100 |
commit | 92f0dba3c81046fa0dd665b35236da83123783f2 (patch) | |
tree | 87ad190917635908e3d83b6c78d19b371780061f /apps/files/js | |
parent | 40b77eb97ae7c3662a820060e021f36c3979c5e8 (diff) | |
download | nextcloud-server-92f0dba3c81046fa0dd665b35236da83123783f2.tar.gz nextcloud-server-92f0dba3c81046fa0dd665b35236da83123783f2.zip |
Show hidden files (dot files) in gray
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f55e73b434b..67bc487a72f 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -743,8 +743,12 @@ // from here work on the display name name = fileData.displayName || name; + // show hidden files (starting with a dot) completely in gray + if(name.indexOf('.') === 0) { + basename = ''; + extension = name; // split extension from filename for non dirs - if (type !== 'dir' && name.indexOf('.') !== -1) { + } else if (type !== 'dir' && name.indexOf('.') !== -1) { basename = name.substr(0, name.lastIndexOf('.')); extension = name.substr(name.lastIndexOf('.')); } else { |