From: Go MAEDA Date: Mon, 25 Nov 2024 01:41:04 +0000 (+0000) Subject: Fix: Prevent sidebar toggle icons from affecting unrelated elements in responsive... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b2b45f063023bd6237a3ed2676d9b4b7e8845e2;p=redmine.git 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 --- 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'); } };