aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-26 10:29:01 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-26 10:35:27 +0100
commit92f0dba3c81046fa0dd665b35236da83123783f2 (patch)
tree87ad190917635908e3d83b6c78d19b371780061f /apps/files/js
parent40b77eb97ae7c3662a820060e021f36c3979c5e8 (diff)
downloadnextcloud-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.js6
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 {