Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-08-25 23:15:07 +03:00
parent 01dfa8dfad
commit 27fd29fa7e

View File

@ -1169,11 +1169,9 @@ var BrowseActionsActions = actions.Actions({
// //
// This uses action definition to build and present an action tree. // This uses action definition to build and present an action tree.
// //
// This supports the following element syntax: // This supports the following element (action doc) syntax:
// - leading '- ' in path to indicate a hidden/disabled element. // - '/' separated action path (action short doc) to indicate the
// Example: // path to action.
// '- Path/To/Element' (disabled/hidden)
// 'Path/To/Other element' (enabled)
// //
// - leading path element number followed by colon to indicate // - leading path element number followed by colon to indicate
// element priority on level. // element priority on level.
@ -1185,6 +1183,13 @@ var BrowseActionsActions = actions.Actions({
// NOTE: an item with negative priority will be below any item // NOTE: an item with negative priority will be below any item
// with greater or no priority. // with greater or no priority.
// //
// - leading '-' in path to indicate a hidden/disabled element.
// Example:
// '- Path/To/Element' (disabled/hidden)
// '- 99:Path/To/Element' (disabled/hidden)
// 'Path/To/Other element' (enabled)
//
//
// //
// Action mode (disabled/hidden) and also be controlled dynamically: // Action mode (disabled/hidden) and also be controlled dynamically:
// - .browseMode() action method is called with actions as base. // - .browseMode() action method is called with actions as base.
@ -1715,6 +1720,10 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({
.focusImage(gid) .focusImage(gid)
.browseActions('/Image/') .browseActions('/Image/')
}], }],
// NOTE: we are using load here and not 'start' because at start
// there may be no viewer yet...
// XXX is this a bug???
['load', ['load',
function(){ function(){
var that = this var that = this