Skip to content
Snippets Groups Projects
Commit 003d5e68 authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

XWIKI-14928: Upgrade to jQuery 3.6.0

* Fix line length.
parent 3528dd65
No related branches found
No related tags found
No related merge requests found
......@@ -342,10 +342,10 @@ define(['jquery', 'JobRunner', 'jsTree', 'tree-finder'], function($, JobRunner)
resolve(node);
} else if (canAcceptChild(parent, pathElement) && siblings.length > 0 &&
this.get_node(siblings.last()).data.type === 'pagination') {
// The corresponding node is probably not displayed because of the pagination. It's expensive to retrieve all the
// rest of the siblings (i.e. all the next pages) until we find the node that corresponds to the given path
// element, so we simply add the node to the parent. Don't worry, the node won't be duplicated when the pagination
// is triggered.
// The corresponding node is probably not displayed because of the pagination. It's expensive to retrieve all
// the rest of the siblings (i.e. all the next pages) until we find the node that corresponds to the given path
// element, so we simply add the node to the parent. Don't worry, the node won't be duplicated when the
// pagination is triggered.
this.create_node(parent, pathElement, siblings.length - 1, resolve);
} else {
// The specified path element can't be loaded.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment