From: jow- Date: Thu, 28 Apr 2022 14:10:16 +0000 (+0000) Subject: deploy: 180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5dd7be87ac4c80d7737fb2425aa5b43824372209;p=project%2Fluci.git deploy: 180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab --- diff --git a/jsapi/LuCI.baseclass.html b/jsapi/LuCI.baseclass.html index 6dbef69a45..7914900342 100644 --- a/jsapi/LuCI.baseclass.html +++ b/jsapi/LuCI.baseclass.html @@ -4770,7 +4770,7 @@ and the values extracted from the args array beginning with diff --git a/jsapi/LuCI.dom.html b/jsapi/LuCI.dom.html index 6006c66684..347e12c0d9 100644 --- a/jsapi/LuCI.dom.html +++ b/jsapi/LuCI.dom.html @@ -6328,7 +6328,7 @@ ignored, else not.

diff --git a/jsapi/LuCI.form.AbstractElement.html b/jsapi/LuCI.form.AbstractElement.html index c31cf55d7b..9272451923 100644 --- a/jsapi/LuCI.form.AbstractElement.html +++ b/jsapi/LuCI.form.AbstractElement.html @@ -4317,7 +4317,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.AbstractSection.html b/jsapi/LuCI.form.AbstractSection.html index fd73cd99e8..5492b001ab 100644 --- a/jsapi/LuCI.form.AbstractSection.html +++ b/jsapi/LuCI.form.AbstractSection.html @@ -6216,7 +6216,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.AbstractValue.html b/jsapi/LuCI.form.AbstractValue.html index 2a5f47ee5f..882ea29cda 100644 --- a/jsapi/LuCI.form.AbstractValue.html +++ b/jsapi/LuCI.form.AbstractValue.html @@ -7271,7 +7271,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.ButtonValue.html b/jsapi/LuCI.form.ButtonValue.html index b021b9350e..57b1837559 100644 --- a/jsapi/LuCI.form.ButtonValue.html +++ b/jsapi/LuCI.form.ButtonValue.html @@ -7594,7 +7594,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.DummyValue.html b/jsapi/LuCI.form.DummyValue.html index 4002416cfa..dc784e4ad4 100644 --- a/jsapi/LuCI.form.DummyValue.html +++ b/jsapi/LuCI.form.DummyValue.html @@ -7580,7 +7580,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.DynamicList.html b/jsapi/LuCI.form.DynamicList.html index 97fce4df1c..bb4fb08a69 100644 --- a/jsapi/LuCI.form.DynamicList.html +++ b/jsapi/LuCI.form.DynamicList.html @@ -7431,7 +7431,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.FileUpload.html b/jsapi/LuCI.form.FileUpload.html index a612aa9086..277c164ca3 100644 --- a/jsapi/LuCI.form.FileUpload.html +++ b/jsapi/LuCI.form.FileUpload.html @@ -7642,7 +7642,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.FlagValue.html b/jsapi/LuCI.form.FlagValue.html index 227ed2b524..37a7657b32 100644 --- a/jsapi/LuCI.form.FlagValue.html +++ b/jsapi/LuCI.form.FlagValue.html @@ -7520,7 +7520,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.GridSection.html b/jsapi/LuCI.form.GridSection.html index 72c5204b73..8b0b21ee52 100644 --- a/jsapi/LuCI.form.GridSection.html +++ b/jsapi/LuCI.form.GridSection.html @@ -7078,7 +7078,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.HiddenValue.html b/jsapi/LuCI.form.HiddenValue.html index 64f339cbcd..cf01f26eab 100644 --- a/jsapi/LuCI.form.HiddenValue.html +++ b/jsapi/LuCI.form.HiddenValue.html @@ -7435,7 +7435,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.JSONMap.html b/jsapi/LuCI.form.JSONMap.html index 435c2b7e3d..8b62abc499 100644 --- a/jsapi/LuCI.form.JSONMap.html +++ b/jsapi/LuCI.form.JSONMap.html @@ -5896,7 +5896,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.ListValue.html b/jsapi/LuCI.form.ListValue.html index a0bd1d622d..d8ae0fe177 100644 --- a/jsapi/LuCI.form.ListValue.html +++ b/jsapi/LuCI.form.ListValue.html @@ -7580,7 +7580,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.Map.html b/jsapi/LuCI.form.Map.html index 127c2acdb4..43a2e0d986 100644 --- a/jsapi/LuCI.form.Map.html +++ b/jsapi/LuCI.form.Map.html @@ -5875,7 +5875,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.MultiValue.html b/jsapi/LuCI.form.MultiValue.html index ba30bc9a75..56fe361919 100644 --- a/jsapi/LuCI.form.MultiValue.html +++ b/jsapi/LuCI.form.MultiValue.html @@ -7531,7 +7531,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.NamedSection.html b/jsapi/LuCI.form.NamedSection.html index 99c1897cb3..a240853802 100644 --- a/jsapi/LuCI.form.NamedSection.html +++ b/jsapi/LuCI.form.NamedSection.html @@ -6480,7 +6480,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.SectionValue.html b/jsapi/LuCI.form.SectionValue.html index 1383057af2..fbadddd20d 100644 --- a/jsapi/LuCI.form.SectionValue.html +++ b/jsapi/LuCI.form.SectionValue.html @@ -7462,7 +7462,7 @@ its write() implementation is a no-op.

diff --git a/jsapi/LuCI.form.TableSection.html b/jsapi/LuCI.form.TableSection.html index 2043c64f33..bb8882b955 100644 --- a/jsapi/LuCI.form.TableSection.html +++ b/jsapi/LuCI.form.TableSection.html @@ -7254,7 +7254,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.TextValue.html b/jsapi/LuCI.form.TextValue.html index f43a62b3ae..ea80b3b1e2 100644 --- a/jsapi/LuCI.form.TextValue.html +++ b/jsapi/LuCI.form.TextValue.html @@ -7478,7 +7478,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.TypedSection.html b/jsapi/LuCI.form.TypedSection.html index af37c7c536..069998ef62 100644 --- a/jsapi/LuCI.form.TypedSection.html +++ b/jsapi/LuCI.form.TypedSection.html @@ -6739,7 +6739,7 @@ was neither a string nor a function. diff --git a/jsapi/LuCI.form.Value.html b/jsapi/LuCI.form.Value.html index 671bab808f..f30e7cd5a2 100644 --- a/jsapi/LuCI.form.Value.html +++ b/jsapi/LuCI.form.Value.html @@ -7537,7 +7537,7 @@ before it is written.

diff --git a/jsapi/LuCI.form.html b/jsapi/LuCI.form.html index e748458f1e..2208765df5 100644 --- a/jsapi/LuCI.form.html +++ b/jsapi/LuCI.form.html @@ -3738,7 +3738,7 @@ m.render().then(function(node) { diff --git a/jsapi/LuCI.fs.html b/jsapi/LuCI.fs.html index be8b88d6eb..431beef37c 100644 --- a/jsapi/LuCI.fs.html +++ b/jsapi/LuCI.fs.html @@ -5915,7 +5915,7 @@ the failure reason. diff --git a/jsapi/LuCI.headers.html b/jsapi/LuCI.headers.html index 72d247ab58..5c700dda6d 100644 --- a/jsapi/LuCI.headers.html +++ b/jsapi/LuCI.headers.html @@ -3943,7 +3943,7 @@ Note: Header-Names are case-insensitive.

diff --git a/jsapi/LuCI.html b/jsapi/LuCI.html index bc9b40c476..326ea82603 100644 --- a/jsapi/LuCI.html +++ b/jsapi/LuCI.html @@ -8138,7 +8138,7 @@ else null.

diff --git a/jsapi/LuCI.network.Device.html b/jsapi/LuCI.network.Device.html index 5367d6a51d..8ed3a205dc 100644 --- a/jsapi/LuCI.network.Device.html +++ b/jsapi/LuCI.network.Device.html @@ -6308,7 +6308,7 @@ when it is down or absent. diff --git a/jsapi/LuCI.network.Hosts.html b/jsapi/LuCI.network.Hosts.html index a72b0c0a17..0daec58cda 100644 --- a/jsapi/LuCI.network.Hosts.html +++ b/jsapi/LuCI.network.Hosts.html @@ -4869,7 +4869,7 @@ is used as hint. diff --git a/jsapi/LuCI.network.Protocol.html b/jsapi/LuCI.network.Protocol.html index e5b93575b8..f4a582db65 100644 --- a/jsapi/LuCI.network.Protocol.html +++ b/jsapi/LuCI.network.Protocol.html @@ -8099,7 +8099,7 @@ configuration.

diff --git a/jsapi/LuCI.network.WifiDevice.html b/jsapi/LuCI.network.WifiDevice.html index a5f6a05ec6..a48103bb50 100644 --- a/jsapi/LuCI.network.WifiDevice.html +++ b/jsapi/LuCI.network.WifiDevice.html @@ -5240,7 +5240,7 @@ configuration.

diff --git a/jsapi/LuCI.network.WifiNetwork.html b/jsapi/LuCI.network.WifiNetwork.html index f7ed26900b..e6d30b8619 100644 --- a/jsapi/LuCI.network.WifiNetwork.html +++ b/jsapi/LuCI.network.WifiNetwork.html @@ -7830,7 +7830,7 @@ configuration.

diff --git a/jsapi/LuCI.network.html b/jsapi/LuCI.network.html index 3c38a02cee..44c3a35e92 100644 --- a/jsapi/LuCI.network.html +++ b/jsapi/LuCI.network.html @@ -9678,7 +9678,7 @@ conjunction with quality to calculate a quality percentage.

- Documentation generated by JSDoc 3.6.10 on Thu Apr 28 2022 10:09:56 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.10 on Thu Apr 28 2022 14:10:09 GMT+0000 (Coordinated Universal Time) diff --git a/jsapi/LuCI.poll.html b/jsapi/LuCI.poll.html index 4a39dd2f81..96e8775859 100644 --- a/jsapi/LuCI.poll.html +++ b/jsapi/LuCI.poll.html @@ -4326,7 +4326,7 @@ run to begin with. diff --git a/jsapi/LuCI.request.html b/jsapi/LuCI.request.html index e0d0c38f7e..d2b6e0bb96 100644 --- a/jsapi/LuCI.request.html +++ b/jsapi/LuCI.request.html @@ -5261,7 +5261,7 @@ instances as sole argument during the HTTP request transfer.

diff --git a/jsapi/LuCI.request.poll.html b/jsapi/LuCI.request.poll.html index 02938cd143..e10e76376c 100644 --- a/jsapi/LuCI.request.poll.html +++ b/jsapi/LuCI.request.poll.html @@ -4445,7 +4445,7 @@ else null.

diff --git a/jsapi/LuCI.response.html b/jsapi/LuCI.response.html index 606f5b2f89..84d2695769 100644 --- a/jsapi/LuCI.response.html +++ b/jsapi/LuCI.response.html @@ -4403,7 +4403,7 @@ using String() and treated as response text.

diff --git a/jsapi/LuCI.rpc.html b/jsapi/LuCI.rpc.html index 808f501f0e..c67aae946b 100644 --- a/jsapi/LuCI.rpc.html +++ b/jsapi/LuCI.rpc.html @@ -5734,7 +5734,7 @@ to the expect and filter declarations. diff --git a/jsapi/LuCI.session.html b/jsapi/LuCI.session.html index f56c11542f..43744efd06 100644 --- a/jsapi/LuCI.session.html +++ b/jsapi/LuCI.session.html @@ -4173,7 +4173,7 @@ being put in the session store.

diff --git a/jsapi/LuCI.uci.html b/jsapi/LuCI.uci.html index aecbc99065..76a328f893 100644 --- a/jsapi/LuCI.uci.html +++ b/jsapi/LuCI.uci.html @@ -7221,7 +7221,7 @@ associated name as arguments.

diff --git a/jsapi/LuCI.ui.AbstractElement.html b/jsapi/LuCI.ui.AbstractElement.html index d6e9d00a43..249f489778 100644 --- a/jsapi/LuCI.ui.AbstractElement.html +++ b/jsapi/LuCI.ui.AbstractElement.html @@ -5277,7 +5277,7 @@ and are displayed in a slightly faded style.

diff --git a/jsapi/LuCI.ui.Checkbox.html b/jsapi/LuCI.ui.Checkbox.html index 3804905da9..151ba76fdb 100644 --- a/jsapi/LuCI.ui.Checkbox.html +++ b/jsapi/LuCI.ui.Checkbox.html @@ -5391,7 +5391,7 @@ it is required for HTML based form submissions.

diff --git a/jsapi/LuCI.ui.ComboButton.html b/jsapi/LuCI.ui.ComboButton.html index 33ba790eee..1f21fdae31 100644 --- a/jsapi/LuCI.ui.ComboButton.html +++ b/jsapi/LuCI.ui.ComboButton.html @@ -5421,7 +5421,7 @@ choice value as second argument.

diff --git a/jsapi/LuCI.ui.Combobox.html b/jsapi/LuCI.ui.Combobox.html index 80f5eff16c..b24b4637cb 100644 --- a/jsapi/LuCI.ui.Combobox.html +++ b/jsapi/LuCI.ui.Combobox.html @@ -5324,7 +5324,7 @@ forcibly set to true.

diff --git a/jsapi/LuCI.ui.Dropdown.html b/jsapi/LuCI.ui.Dropdown.html index d7f716f4e3..15ba414176 100644 --- a/jsapi/LuCI.ui.Dropdown.html +++ b/jsapi/LuCI.ui.Dropdown.html @@ -6122,7 +6122,7 @@ expression. Only applicable when create is true.

- Documentation generated by JSDoc 3.6.10 on Thu Apr 28 2022 10:09:57 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.10 on Thu Apr 28 2022 14:10:09 GMT+0000 (Coordinated Universal Time) diff --git a/jsapi/LuCI.ui.DynamicList.html b/jsapi/LuCI.ui.DynamicList.html index 51d714d297..efb016d541 100644 --- a/jsapi/LuCI.ui.DynamicList.html +++ b/jsapi/LuCI.ui.DynamicList.html @@ -5499,7 +5499,7 @@ it to remain unselected.

diff --git a/jsapi/LuCI.ui.FileUpload.html b/jsapi/LuCI.ui.FileUpload.html index ff2b496f19..dd8dfce38c 100644 --- a/jsapi/LuCI.ui.FileUpload.html +++ b/jsapi/LuCI.ui.FileUpload.html @@ -5348,7 +5348,7 @@ ACL setup for the current session.

diff --git a/jsapi/LuCI.ui.Hiddenfield.html b/jsapi/LuCI.ui.Hiddenfield.html index 969eb7cb8f..63de10a409 100644 --- a/jsapi/LuCI.ui.Hiddenfield.html +++ b/jsapi/LuCI.ui.Hiddenfield.html @@ -5102,7 +5102,7 @@ trigger validation runs, e.g. when programmatically altering values.

diff --git a/jsapi/LuCI.ui.Select.html b/jsapi/LuCI.ui.Select.html index debab6416e..e7d4996b82 100644 --- a/jsapi/LuCI.ui.Select.html +++ b/jsapi/LuCI.ui.Select.html @@ -5451,7 +5451,7 @@ selected yet. Only applicable to the select widget type.

diff --git a/jsapi/LuCI.ui.Textarea.html b/jsapi/LuCI.ui.Textarea.html index 657d775b1d..365f8bed4b 100644 --- a/jsapi/LuCI.ui.Textarea.html +++ b/jsapi/LuCI.ui.Textarea.html @@ -5400,7 +5400,7 @@ contents.

diff --git a/jsapi/LuCI.ui.Textfield.html b/jsapi/LuCI.ui.Textfield.html index 6c7ca03d9d..96e70c791c 100644 --- a/jsapi/LuCI.ui.Textfield.html +++ b/jsapi/LuCI.ui.Textfield.html @@ -5328,7 +5328,7 @@ corresponding <input> element is empty.

diff --git a/jsapi/LuCI.ui.changes.html b/jsapi/LuCI.ui.changes.html index d3855cdbc7..91cf674ae8 100644 --- a/jsapi/LuCI.ui.changes.html +++ b/jsapi/LuCI.ui.changes.html @@ -3559,7 +3559,7 @@ external JavaScript, use L.require("ui").then(...) and ac
- ui.js, line 4288 + ui.js, line 4305
@@ -3644,7 +3644,7 @@ external JavaScript, use L.require("ui").then(...) and ac
- ui.js, line 4590 + ui.js, line 4607
@@ -3785,7 +3785,7 @@ settings.

- ui.js, line 4365 + ui.js, line 4382
@@ -3858,7 +3858,7 @@ and offer options to revert or apply the shown changes.

- ui.js, line 4331 + ui.js, line 4348
@@ -3976,7 +3976,7 @@ UCI changeset structure.

- ui.js, line 4637 + ui.js, line 4654
@@ -4052,7 +4052,7 @@ complete.

- ui.js, line 4309 + ui.js, line 4326
@@ -4180,7 +4180,7 @@ is removed.

diff --git a/jsapi/LuCI.ui.html b/jsapi/LuCI.ui.html index d62bd2d3c7..5f4d1166d1 100644 --- a/jsapi/LuCI.ui.html +++ b/jsapi/LuCI.ui.html @@ -3556,7 +3556,7 @@ external JavaScript, use L.require("ui").then(...).

- ui.js, line 3436 + ui.js, line 3453 @@ -3687,7 +3687,7 @@ external JavaScript, use L.require("ui").then(...).

- ui.js, line 3626 + ui.js, line 3643 @@ -3917,7 +3917,7 @@ banner element.

- ui.js, line 4705 + ui.js, line 4722
@@ -4231,7 +4231,7 @@ trigger field validation or to bind it to further events.
- ui.js, line 4252 + ui.js, line 4269
@@ -4368,7 +4368,7 @@ default.

- ui.js, line 4756 + ui.js, line 4773
@@ -4594,7 +4594,7 @@ valid function value.
- ui.js, line 3746 + ui.js, line 3763
@@ -4742,7 +4742,7 @@ requested indicator was not found.
- ui.js, line 3528 + ui.js, line 3545
@@ -4818,7 +4818,7 @@ handler as-is without the need to bind it first.

- ui.js, line 4799 + ui.js, line 4816
@@ -4970,7 +4970,7 @@ catched and rendered using LuCI.error() - ui.js, line 3789 + ui.js, line 3806 @@ -5212,7 +5212,7 @@ accepted by LuCI.dom.content().

- ui.js, line 4226 + ui.js, line 4243
@@ -5415,7 +5415,7 @@ or rejecting with null when the connectivity check timed out.
- ui.js, line 3698 + ui.js, line 3715
@@ -5686,7 +5686,7 @@ changes were made.
- ui.js, line 3501 + ui.js, line 3518
@@ -5915,7 +5915,7 @@ element.

- ui.js, line 4104 + ui.js, line 4121
@@ -6273,7 +6273,7 @@ cancelled by the user. diff --git a/jsapi/LuCI.ui.menu.html b/jsapi/LuCI.ui.menu.html index 333d11f02e..ccb8b70ae0 100644 --- a/jsapi/LuCI.ui.menu.html +++ b/jsapi/LuCI.ui.menu.html @@ -4227,7 +4227,7 @@ internal root node if omitted.

diff --git a/jsapi/LuCI.ui.tabs.html b/jsapi/LuCI.ui.tabs.html index 048395c2f5..a5a7407b9c 100644 --- a/jsapi/LuCI.ui.tabs.html +++ b/jsapi/LuCI.ui.tabs.html @@ -3560,7 +3560,7 @@ external JavaScript, use L.require("ui").then(...) and ac
- ui.js, line 3830 + ui.js, line 3847
@@ -3645,7 +3645,7 @@ external JavaScript, use L.require("ui").then(...) and ac
- ui.js, line 3885 + ui.js, line 3902
@@ -3774,7 +3774,7 @@ DOM node.

- ui.js, line 3957 + ui.js, line 3974
@@ -3927,7 +3927,7 @@ DOM node.

diff --git a/jsapi/LuCI.view.html b/jsapi/LuCI.view.html index c8d667567b..405b964de1 100644 --- a/jsapi/LuCI.view.html +++ b/jsapi/LuCI.view.html @@ -4531,7 +4531,7 @@ to a Node value. diff --git a/jsapi/LuCI.xhr.html b/jsapi/LuCI.xhr.html index c10843a800..fb9f43433d 100644 --- a/jsapi/LuCI.xhr.html +++ b/jsapi/LuCI.xhr.html @@ -4495,7 +4495,7 @@ when invoked.

diff --git a/jsapi/form.js.html b/jsapi/form.js.html index e685ce0a8d..499f624f57 100644 --- a/jsapi/form.js.html +++ b/jsapi/form.js.html @@ -8345,7 +8345,7 @@ return baseclass.extend(/** @lends LuCI.form.prototype */ { diff --git a/jsapi/fs.js.html b/jsapi/fs.js.html index 388823fc70..f148978e60 100644 --- a/jsapi/fs.js.html +++ b/jsapi/fs.js.html @@ -3969,7 +3969,7 @@ return FileSystem; diff --git a/jsapi/index.html b/jsapi/index.html index bbfbb77434..497f8c9e4a 100644 --- a/jsapi/index.html +++ b/jsapi/index.html @@ -3556,7 +3556,7 @@ is the central JSDoc 3.6.10 on Thu Apr 28 2022 10:09:56 GMT+0000 (Coordinated Universal Time) + Documentation generated by JSDoc 3.6.10 on Thu Apr 28 2022 14:10:08 GMT+0000 (Coordinated Universal Time) diff --git a/jsapi/luci.js.html b/jsapi/luci.js.html index b6c05252c9..e51aa20930 100644 --- a/jsapi/luci.js.html +++ b/jsapi/luci.js.html @@ -6963,7 +6963,7 @@ diff --git a/jsapi/network.js.html b/jsapi/network.js.html index 425cb21a76..9686603e70 100644 --- a/jsapi/network.js.html +++ b/jsapi/network.js.html @@ -7929,7 +7929,7 @@ return Network; diff --git a/jsapi/rpc.js.html b/jsapi/rpc.js.html index 0bdb1879d6..58e15368aa 100644 --- a/jsapi/rpc.js.html +++ b/jsapi/rpc.js.html @@ -4025,7 +4025,7 @@ return baseclass.extend(/** @lends LuCI.rpc.prototype */ { diff --git a/jsapi/uci.js.html b/jsapi/uci.js.html index 6196e4a235..3d6a52d425 100644 --- a/jsapi/uci.js.html +++ b/jsapi/uci.js.html @@ -4525,7 +4525,7 @@ return baseclass.extend(/** @lends LuCI.uci.prototype */ { diff --git a/jsapi/ui.js.html b/jsapi/ui.js.html index 86c0dcb067..ba52a46883 100644 --- a/jsapi/ui.js.html +++ b/jsapi/ui.js.html @@ -6655,7 +6655,24 @@ var UIMenu = baseclass.singleton(/** @lends LuCI.ui.menu.prototype */ { if (!node.children[k].hasOwnProperty('title')) continue; - children.push(Object.assign(node.children[k], { name: k })); + var subnode = Object.assign(node.children[k], { name: k }); + + if (L.isObject(subnode.action) && subnode.action.path != null && + (subnode.action.type == 'alias' || subnode.action.type == 'rewrite')) { + var root = this.menu, + path = subnode.action.path.split('/'); + + for (var i = 0; root != null && i < path.length; i++) + root = L.isObject(root.children) ? root.children[path[i]] : null; + + if (root) + subnode = Object.assign({}, subnode, { + children: root.children, + action: root.action + }); + } + + children.push(subnode); } return children.sort(function(a, b) { @@ -8372,7 +8389,7 @@ return UI;