From 8d07e5cf70c14f5ddcdeb9ad9c976f473ed62978 Mon Sep 17 00:00:00 2001 From: dingchao <10026865@qq.com> Date: Fri, 9 May 2025 10:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=90=9C=E7=B4=A2=E5=8C=BA?= =?UTF-8?q?=E5=B1=95=E5=BC=80or=E6=94=B6=E8=B5=B7=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=EF=BC=9Adata-search-expand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/admin/public/admin/js/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin/admin/public/admin/js/common.js b/src/plugin/admin/public/admin/js/common.js index 3b8fb23f..da04c5d3 100644 --- a/src/plugin/admin/public/admin/js/common.js +++ b/src/plugin/admin/public/admin/js/common.js @@ -11,7 +11,9 @@ function toggleSearchFormShow() } let btns = $('.top-search-from .toggle-btn a'); let toggle = toggleSearchFormShow; + let searchExpand = $('.top-search-from').attr("data-search-expand"); if (typeof toggle.hide === 'undefined') { + toggle.hide = searchExpand === 'on'; btns.on('click', function () { toggle(); });