diff options
Diffstat (limited to 'core/src/OC/dialogs.js')
-rw-r--r-- | core/src/OC/dialogs.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index b1d0e24c076..8efcd4078dd 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -1143,6 +1143,16 @@ const Dialogs = { }) } + // Check if the showHidden input field exist and if it exist follow it + // Otherwise just show the hidden files + const showHiddenInput = document.getElementById('showHiddenFiles') + const showHidden = showHiddenInput === null || showHiddenInput.value === "1" + if (!showHidden) { + files = files.filter(function(file) { + return !file.name.startsWith('.') + }) + } + var Comparators = { name: function(fileInfo1, fileInfo2) { if (fileInfo1.type === 'dir' && fileInfo2.type !== 'dir') { |