From db1c1a83a1c8fa24c2c6d466b2f405ee7489f55c Mon Sep 17 00:00:00 2001 From: guofeilong Date: Tue, 28 Mar 2023 08:44:15 +0800 Subject: [PATCH] * Adjust code . --- module/doc/js/tablecontents.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/doc/js/tablecontents.js b/module/doc/js/tablecontents.js index 91ed0db7ed..7d1644fe26 100644 --- a/module/doc/js/tablecontents.js +++ b/module/doc/js/tablecontents.js @@ -17,6 +17,12 @@ $(function() return dropdown; } + var imgObj = { + 'annex': 'annex', + 'lib': 'wiki-file-lib' + } + console.log(treeData); + $('#fileTree').tree( { initialState: 'active', @@ -27,8 +33,8 @@ $(function() var hasChild = item.children ? !!item.children.length : false; var $item = ''; $item += '
'; - if(libClass == 'lib') $item += '
'; - $item += ''; + if(libClass == 'lib') $item += '
'; + $item += ''; $item += item.name $item += ''; $item += '';