Clear some javascript @todos: fancytree options, optionclass processing
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 3m27s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m25s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m35s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
2025-03-06 23:32:51 +11:00
parent dc623b18ae
commit c588e13bd8
6 changed files with 52 additions and 62 deletions

12
public/js/custom.js vendored
View File

@@ -64,18 +64,14 @@ $(document).ready(function() {
// and pass the tree options as an argument to the fancytree() function:
$('#tree').fancytree({
clickFolderMode: 3,
extensions: ['glyph','persist'],
extensions: ['persist'],
autoCollapse: true, // Automatically collapse all siblings, when a node is expanded.
autoScroll: true, // Automatically scroll nodes into visible area.
focusOnSelect: true, // Set focus when node is checked by a mouse click
glyph: {
preset: 'bootstrap3', // @todo look at changing this to awesome5
map: {}
},
persist: {
// Available options with their default:
cookieDelimiter: '~', // character used to join key strings
cookiePrefix: undefined, // 'fancytree-<treeId>-' by default
cookiePrefix: 'pla-<treeId>-', // 'fancytree-<treeId>-' by default
cookie: { // settings passed to jquery.cookie plugin
raw: false,
expires: '',
@@ -85,14 +81,14 @@ $(document).ready(function() {
},
expandLazy: true, // true: recursively expand and load lazy nodes
expandOpts: undefined, // optional `opts` argument passed to setExpanded()
fireActivate: false, //
overrideSource: true, // true: cookie takes precedence over `source` data attributes.
store: 'auto', // 'cookie': use cookie, 'local': use localStore, 'session': use sessionStore
types: 'active expanded focus selected' // which status types to store
},
click: function(event,data) {
if (data.targetType == 'title') {
if (data.targetType === 'title')
getNode(data.node.data.item);
}
},
source: sources,
lazyLoad: function(event,data) {