mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-24 06:20:07 +01:00
Optional hide parent folder links.
This commit is contained in:
parent
289ce2993c
commit
8f6aaa892c
@ -3,6 +3,7 @@ modulejs.define('view/items', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
|
||||
var settings = _.extend({
|
||||
setParentFolderLabels: false,
|
||||
hideParentFolderLinks: false,
|
||||
binaryPrefix: false
|
||||
}, allsettings.view),
|
||||
|
||||
@ -112,7 +113,7 @@ modulejs.define('view/items', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||
|
||||
$items.find('.item').remove();
|
||||
|
||||
if (item.parent) {
|
||||
if (item.parent && !settings.hideParentFolderLinks) {
|
||||
$items.append(update(item.parent, true));
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@ Options
|
||||
The user selected view mode is also stored local in modern browsers
|
||||
so that it will be persistent.
|
||||
- setParentFolderLabels: set parent folder labels to real folder names
|
||||
- hideParentFolderLinks: hide parent folder links
|
||||
- binaryPrefix: set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix)
|
||||
- indexFiles: consider folder with those files as non {{pkg.name}} folders
|
||||
- ignore: don't list items matching these regular expressions
|
||||
@ -38,6 +39,7 @@ Options
|
||||
"view": {
|
||||
"modes": ["details", "icons", "grid", "list"],
|
||||
"setParentFolderLabels": true,
|
||||
"hideParentFolderLinks": false,
|
||||
"binaryPrefix": false,
|
||||
"indexFiles": ["index.html", "index.htm", "index.php"],
|
||||
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user