From 5222349c85911f04e99c6d56cc5acb3585c7f277 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Aug 2026 18:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/front-submit.js | 13 ------------- templates/parts/submit/sidebar-terms.php | 4 ++-- .../post-editor-reference-contract.test.cjs | 5 +++++ 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/assets/js/front-submit.js b/assets/js/front-submit.js index c76e70c1..2e04b312 100644 --- a/assets/js/front-submit.js +++ b/assets/js/front-submit.js @@ -94,7 +94,6 @@ this.bindLeaveWarning(); this.bindAi(); this.bindTagActive(); - this.bindDropSelect(); this.loadFeaturedFromDom(); }, @@ -158,18 +157,6 @@ }); }, - bindDropSelect: function () { - qsa('.term-select-box [data-toggle-class="open"]').forEach(function (button) { - button.addEventListener('click', function () { - var box = button.closest('.drop-select'); - if (!box) return; - var open = !box.classList.contains('open'); - box.classList.toggle('open', open); - button.setAttribute('aria-expanded', open ? 'true' : 'false'); - }); - }); - }, - bindSubmitButtons: function () { var self = this; qsa('.aksrt-submit-btn', this.form).forEach(function (btn) { diff --git a/templates/parts/submit/sidebar-terms.php b/templates/parts/submit/sidebar-terms.php index a25c3ab8..fa903360 100644 --- a/templates/parts/submit/sidebar-terms.php +++ b/templates/parts/submit/sidebar-terms.php @@ -27,7 +27,7 @@ require_once get_template_directory() . '/templates/parts/submit/term-checks.php