a better minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-03-25 01:48:20 +03:00
parent 4a9994822f
commit 53f6e7c1f3

View File

@ -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...