From a8029471474c22acece93028d92dfca2f52a704a Mon Sep 17 00:00:00 2001 From: guofeilong Date: Fri, 17 Mar 2023 13:26:17 +0800 Subject: [PATCH] * Adjust code . --- module/doc/js/tablecontents.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/doc/js/tablecontents.js b/module/doc/js/tablecontents.js index 9adaa4e4bc..ed8a5756e3 100644 --- a/module/doc/js/tablecontents.js +++ b/module/doc/js/tablecontents.js @@ -96,6 +96,8 @@ $(function() } }); + console.log(treeData); + $('#fileTree').tree( { data: treeData, @@ -107,7 +109,7 @@ $(function() '">' + '
' + (item.name || '') + '' + '
' + ''; @@ -117,7 +119,7 @@ $(function() }); $('li.has-list > ul').addClass("menu-active-primary menu-hover-primary"); - $('.file-tree').on('mousemove', 'a', function(e) + $('#fileTree').on('mousemove', 'a', function(e) { $(this).find('.icon').removeClass('hidden'); }).on('mouseout', 'a', function(e) @@ -156,11 +158,10 @@ $(function() }); }; - $('.file-tree').on('click', '.icon-drop', function(e) + $('#fileTree').on('click', '.icon-drop', function(e) { var isCatalogue = $(this).attr('data-isCatalogue') === 'false' ? false : true; var dropDownID = isCatalogue ? 'dropDownCatalogue' : 'dropDownLibrary'; - console.log(dropDownID); var option = { left: e.pageX, top: e.pageY,