mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -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({
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue