From 0b2b45f063023bd6237a3ed2676d9b4b7e8845e2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 25 Nov 2024 01:41:04 +0000 Subject: [PATCH] Fix: Prevent sidebar toggle icons from affecting unrelated elements in responsive mode (#41822). Patch by Mizuki ISHIKAWA (user:ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@23307 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/assets/javascripts/application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d5172381c..5b2578b7a 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -1293,10 +1293,10 @@ function inlineAutoComplete(element) { }; var applyState = function(){ if(main.hasClass('collapsedsidebar')){ - updateSVGIcon(main[0], 'chevrons-left') + updateSVGIcon(document.getElementById('sidebar-switch-button'), 'chevrons-left') setState('hidden'); } else { - updateSVGIcon(main[0], 'chevrons-right') + updateSVGIcon(document.getElementById('sidebar-switch-button'), 'chevrons-right') setState('visible'); } }; -- 2.39.5