From 27fd29fa7e15bd60f5a764ab579c881f3606dab4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 25 Aug 2017 23:15:07 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 0c15bf97..b42025e2 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1169,11 +1169,9 @@ var BrowseActionsActions = actions.Actions({ // // This uses action definition to build and present an action tree. // - // This supports the following element syntax: - // - leading '- ' in path to indicate a hidden/disabled element. - // Example: - // '- Path/To/Element' (disabled/hidden) - // 'Path/To/Other element' (enabled) + // This supports the following element (action doc) syntax: + // - '/' separated action path (action short doc) to indicate the + // path to action. // // - leading path element number followed by colon to indicate // element priority on level. @@ -1185,6 +1183,13 @@ var BrowseActionsActions = actions.Actions({ // NOTE: an item with negative priority will be below any item // 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: // - .browseMode() action method is called with actions as base. @@ -1715,6 +1720,10 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({ .focusImage(gid) .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', function(){ var that = this