mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 06:25:18 -04:00
Optional hide parent folder links.
This commit is contained in:
parent
289ce2993c
commit
8f6aaa892c
2 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ modulejs.define('view/items', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||||
|
|
||||||
var settings = _.extend({
|
var settings = _.extend({
|
||||||
setParentFolderLabels: false,
|
setParentFolderLabels: false,
|
||||||
|
hideParentFolderLinks: false,
|
||||||
binaryPrefix: false
|
binaryPrefix: false
|
||||||
}, allsettings.view),
|
}, allsettings.view),
|
||||||
|
|
||||||
|
@ -112,7 +113,7 @@ modulejs.define('view/items', ['_', '$', 'core/settings', 'core/resource', 'core
|
||||||
|
|
||||||
$items.find('.item').remove();
|
$items.find('.item').remove();
|
||||||
|
|
||||||
if (item.parent) {
|
if (item.parent && !settings.hideParentFolderLinks) {
|
||||||
$items.append(update(item.parent, true));
|
$items.append(update(item.parent, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ Options
|
||||||
The user selected view mode is also stored local in modern browsers
|
The user selected view mode is also stored local in modern browsers
|
||||||
so that it will be persistent.
|
so that it will be persistent.
|
||||||
- setParentFolderLabels: set parent folder labels to real folder names
|
- 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)
|
- 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
|
- indexFiles: consider folder with those files as non {{pkg.name}} folders
|
||||||
- ignore: don't list items matching these regular expressions
|
- ignore: don't list items matching these regular expressions
|
||||||
|
@ -38,6 +39,7 @@ Options
|
||||||
"view": {
|
"view": {
|
||||||
"modes": ["details", "icons", "grid", "list"],
|
"modes": ["details", "icons", "grid", "list"],
|
||||||
"setParentFolderLabels": true,
|
"setParentFolderLabels": true,
|
||||||
|
"hideParentFolderLinks": false,
|
||||||
"binaryPrefix": false,
|
"binaryPrefix": false,
|
||||||
"indexFiles": ["index.html", "index.htm", "index.php"],
|
"indexFiles": ["index.html", "index.htm", "index.php"],
|
||||||
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue