diff --git a/api/src/Link/Sharing.php b/api/src/Link/Sharing.php index 3fe21df22f..1e50cd0fa2 100644 --- a/api/src/Link/Sharing.php +++ b/api/src/Link/Sharing.php @@ -104,7 +104,7 @@ class Sharing extends \EGroupware\Api\Sharing $document['allowOnMultiple'] = true; $document['onExecute'] = "javaScript:app.$appname.share_merge"; } - $documents['enabled'] = !!($GLOBALS['egw_info']['user']['apps']['stylite']) ? + $documents['enabled'] = (boolean)$documents['children'] && !!($GLOBALS['egw_info']['user']['apps']['stylite']) ? "javaScript:app.$appname.is_share_enabled" : false; $actions['share']['children']['shareDocuments'] = $documents; } diff --git a/api/src/Sharing.php b/api/src/Sharing.php index 968bb35d85..8b487ded54 100644 --- a/api/src/Sharing.php +++ b/api/src/Sharing.php @@ -435,7 +435,8 @@ class Sharing 'icon' => 'link', 'order' => 11, 'enabled' => "javaScript:app.$appname.is_share_enabled", - 'onExecute' => "javaScript:app.$appname.share_link" + 'onExecute' => "javaScript:app.$appname.share_link", + 'hint' => lang("Share this %1 via URL", Link::get_registry($appname, 'entry')) ), 'shareWritable' => array( 'caption' => lang('Writable'), @@ -443,14 +444,16 @@ class Sharing 'icon' => 'edit', 'allowOnMultiple' => true, 'enabled' => "javaScript:app.$appname.is_share_enabled", - 'checkbox' => true + 'checkbox' => true, + 'hint' => lang("Allow editing the %1", Link::get_registry($appname, 'entry')) ), 'shareFiles' => array( 'caption' => lang('Share files'), 'group' => 2, 'allowOnMultiple' => true, 'enabled' => "javaScript:app.$appname.is_share_enabled", - 'checkbox' => true + 'checkbox' => true, + 'hint' => lang('Include access to any linked files (Links tab)') ), 'shareFilemanager' => array( 'caption' => lang('Filemanager directory'), @@ -458,7 +461,8 @@ class Sharing 'icon' => 'link', 'order' => 20, 'enabled' => "javaScript:app.$appname.is_share_enabled", - 'onExecute' => "javaScript:app.$appname.share_link" + 'onExecute' => "javaScript:app.$appname.share_link", + 'hint' => lang('Share just the associated filemanager directory, not the %1', Link::get_registry($appname, 'entry')) ), ), ));