mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
Merge pull request #30673 from nextcloud/backport/stable22/30597
This commit is contained in:
commit
fbc1007618
5 changed files with 14 additions and 4 deletions
2
core/js/dist/login.js
vendored
2
core/js/dist/login.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/login.js.map
vendored
2
core/js/dist/login.js.map
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js
vendored
2
core/js/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js.map
vendored
2
core/js/dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1148,6 +1148,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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue