From f26abd5ad2266ecd73fff03cfd16f41fd26fde20 Mon Sep 17 00:00:00 2001 From: shalousun Date: Sat, 4 Sep 2021 14:55:00 +0800 Subject: [PATCH] Fix the bug that the deprecated mark disappears after searching for item . --- .../resources/template/js/search_all.js.btl | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/main/resources/template/js/search_all.js.btl b/src/main/resources/template/js/search_all.js.btl index 2ac96c1..cb40214 100644 --- a/src/main/resources/template/js/search_all.js.btl +++ b/src/main/resources/template/js/search_all.js.btl @@ -17,6 +17,8 @@ api[${apiGroupLP.dataIndex}].list.push({ <%for(doc in api.list) {%> api[${apiGroupLP.dataIndex}].list[${apiLP.dataIndex}].list.push({ order: '${doc.order}', + deprecated: '${doc.deprecated}', + url: '${doc.url}', desc: '${strUtil.replace(removeLineBreaks(doc.desc), "\'", "\\'")}', }); <%}%> @@ -127,7 +129,13 @@ function buildAccordion(apiGroups, liClass, display) { html += ''; html += ''; @@ -146,8 +154,14 @@ function buildAccordion(apiGroups, liClass, display) { html += ''; html += ''; }