From a7585dd4e07bfe9f97ae4ee31fa24696ad43c9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 27 Feb 2023 22:07:36 +0800 Subject: [PATCH] fix error --- app/controllers/site_menu_widgets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/site_menu_widgets_controller.rb b/app/controllers/site_menu_widgets_controller.rb index e66ecfb..dcc2b96 100644 --- a/app/controllers/site_menu_widgets_controller.rb +++ b/app/controllers/site_menu_widgets_controller.rb @@ -150,7 +150,7 @@ class SiteMenuWidgetsController < ApplicationController create_menu_bool_object(items) temp = @ul_index.reverse.collect do |ul_index| "var ul_tp = $('div[data-subpart-id=#{subpart.id}]').find('ul.dropdown-menu').eq(#{ul_index[0]}) - ul_tp.removeClass('dropdown-menu') + ul_tp.removeClass('dropdown-menu').addClass('show'); $('div[data-subpart-id=#{subpart.id}]').find('li').eq(#{ul_index[1]}).find('span').eq(0).remove() " end