|
197 | 197 | const bottomBar = document.querySelector('.reviews-bottom-bar'); |
198 | 198 | const toggleIcon = document.getElementById('toggle-icon'); |
199 | 199 | const toggleButton = document.getElementById('bottom-bar-toggle'); |
200 | | - |
| 200 | + |
201 | 201 | if (bottomBar && toggleIcon && toggleButton) { |
202 | 202 | if (bottomBarHidden) { |
203 | 203 | bottomBar.classList.add('hidden'); |
|
206 | 206 | } else { |
207 | 207 | toggleButton.setAttribute('aria-expanded', 'true'); |
208 | 208 | } |
209 | | - |
| 209 | + |
210 | 210 | toggleButton.addEventListener('click', toggleBottomBar); |
211 | 211 | } |
212 | 212 |
|
|
358 | 358 | const bottomBar = document.querySelector('.reviews-bottom-bar'); |
359 | 359 | const toggleIcon = document.getElementById('toggle-icon'); |
360 | 360 | const toggleButton = document.getElementById('bottom-bar-toggle'); |
361 | | - |
| 361 | + |
362 | 362 | if (!bottomBar || !toggleIcon || !toggleButton) { |
363 | 363 | console.warn('Required elements for bottom bar toggle not found'); |
364 | 364 | return; |
365 | 365 | } |
366 | | - |
| 366 | + |
367 | 367 | bottomBar.classList.toggle('hidden'); |
368 | | - |
| 368 | + |
369 | 369 | if (bottomBar.classList.contains('hidden')) { |
370 | 370 | toggleIcon.textContent = '▲'; |
371 | 371 | toggleButton.setAttribute('aria-expanded', 'false'); |
372 | 372 | } else { |
373 | 373 | toggleIcon.textContent = '▼'; |
374 | 374 | toggleButton.setAttribute('aria-expanded', 'true'); |
375 | 375 | } |
376 | | - |
| 376 | + |
377 | 377 | // Save preference in localStorage |
378 | 378 | localStorage.setItem('proposalsBottomBarHidden', bottomBar.classList.contains('hidden')); |
379 | 379 | }; |
@@ -406,7 +406,7 @@ <h3>Show proposals with pending status:</h3> |
406 | 406 | </div> |
407 | 407 | </div> |
408 | 408 | <div class="opt-filter"> |
409 | | - <h3>Show proposals with type:</h3> |
| 409 | + <h3>Show proposals of type:</h3> |
410 | 410 | <div> |
411 | 411 | {% for submission_type in submission_types %} |
412 | 412 | <label> |
|
0 commit comments