From 53f6e7c1f3d60451b00b5617c7393802ac555a80 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 25 Mar 2018 01:48:20 +0300 Subject: [PATCH] a better minor bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 31bd090d..6b19abec 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1433,7 +1433,8 @@ var BrowseActionsActions = actions.Actions({ // Sort tree level in-place... // - // NOTE: this will remove the priority + // NOTE: this will remove the priority unless raw_keys is set... + // NOTE: setting shallow will sort only one level level... var sortTree = function(tree, raw_keys, shallow){ var level = Object.keys(tree) level @@ -1594,7 +1595,7 @@ var BrowseActionsActions = actions.Actions({ }) // sort the tree... - sortTree(tree) + sortTree(tree, path == 'raw') } // return the raw tree... @@ -1772,7 +1773,7 @@ var BrowseActionsActions = actions.Actions({ // pre-cache the action tree... var tree = !options.live_tree ? - actions.getActions('raw') + actions.getActions('/') : null // now for the dialog...