';
- if(libClass == 'lib') $item += '
';
+ if(libClass == 'lib' && item.type != 'execution') $item += '
';
$item += '
';
$item += item.name
$item += '';
@@ -52,6 +54,7 @@ $(function()
$('#fileTree').on('mousemove', 'a', function()
{
if($(this).data('type') == 'annex') return;
+ if(!$(this).data('action')) return;
var libClass = '.libDorpdown';
if(!$(this).hasClass('lib')) libClass = '.moduleDorpdown';
@@ -65,6 +68,8 @@ $(function()
$(this).removeClass('show-icon');
}).on('click', 'a', function(e)
{
+ if(!$(this).data('action')) return;
+
var isLib = $(this).hasClass('lib');
var moduleID = $(this).data('id');
var libID = 0;
diff --git a/module/doc/model.php b/module/doc/model.php
index 0defd8ed39..3dd955286c 100644
--- a/module/doc/model.php
+++ b/module/doc/model.php
@@ -2867,15 +2867,17 @@ class docModel extends model
if(empty($libTree['execution'][$executionID]))
{
$execution = new stdclass();
- $execution->id = $executionID;
- $execution->name = zget($executionPairs, $executionID);
- $execution->type = 'execution';
- $execution->active = $item->active;
- $execution->children = array();
+ $execution->id = $executionID;
+ $execution->name = zget($executionPairs, $executionID);
+ $execution->type = 'execution';
+ $execution->active = $item->active;
+ $execution->hasAction = false;
+ $execution->children = array();
if(count($executionLibs[$executionID]) == 1)
{
- $execution->id = $item->id;
- $execution->children = $item->children;
+ $execution->id = $item->id;
+ $execution->hasAction = true;
+ $execution->children = $item->children;
}
$libTree['execution'][$executionID] = $execution;