From c898114c7cf8ad1a3cf38ad8d0507c4213caa840 Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Tue, 22 Jun 2021 16:51:11 +0800 Subject: [PATCH] * bug #13286, fix xxs bug. --- module/index/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/index/js/index.js b/module/index/js/index.js index f8ebff9f61..618193ca7b 100644 --- a/module/index/js/index.js +++ b/module/index/js/index.js @@ -683,7 +683,7 @@ $(function() var isQuickGo = !reg.test(val); $dropmenu.toggleClass('show-quick-go', isQuickGo); var $typeAll = $dropmenu.find('li.search-type-all > a'); - $typeAll.html(searchAB + ' "' + val + '"'); + $typeAll.text(searchAB + ' ' + val); if(isQuickGo) { $typeAll.closest('li').removeClass('active'); @@ -692,7 +692,7 @@ $(function() var $this = $(this); var isActiveType = $this.data('value') === searchType && searchType !== 'all'; $this.closest('li').toggleClass('selected active', isActiveType); - $this.html($this.data('name') + ' #' + (val.length > 7 ? (val.substr(0, 7) + '...') : val) + ""); + $this.text($this.data('name') + ' #' + (val.length > 7 ? (val.substr(0, 7) + '...') : val)); if(isActiveType) $dropmenu.addClass('with-active'); }); }