]> source.dussan.org Git - redmine.git/commitdiff
Fix: Prevent sidebar toggle icons from affecting unrelated elements in responsive...
authorGo MAEDA <maeda@farend.jp>
Mon, 25 Nov 2024 01:41:04 +0000 (01:41 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 25 Nov 2024 01:41:04 +0000 (01:41 +0000)
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

index d5172381c3a109d7baf3f9fdea6c728d7261f692..5b2578b7afa4e8c37c13eb5f66043f430b9c935f 100644 (file)
@@ -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');
     }
   };