aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/navigation.js
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-08-04 08:45:57 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-08-17 19:28:40 +0000
commit6d12f8b8a146cf789f924b9c0de16ddd05a92ae4 (patch)
tree60f1505d4ca2c8bfbdc1649f1b87493f6ec190c5 /apps/files/js/navigation.js
parent2f538bb20f7859b2f09d0d088be9ee47c6cdadde (diff)
downloadnextcloud-server-6d12f8b8a146cf789f924b9c0de16ddd05a92ae4.tar.gz
nextcloud-server-6d12f8b8a146cf789f924b9c0de16ddd05a92ae4.zip
Add ```aria-expanded``` value to select2-container om systemtag and file tags
Add ```aria-expanded``` to color picker Add ```aria-expanded``` to UnifiedSearch.vue Add ```aria-expanded``` to new button on files Add ```aria-expanded``` to action menu Add ```aria-expanded``` to icon .federation-menu Add ```aria-expanded``` to app navigation collapse button Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/js/navigation.js')
-rw-r--r--apps/files/js/navigation.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js
index f8f15394ef0..8a2cddb3f52 100644
--- a/apps/files/js/navigation.js
+++ b/apps/files/js/navigation.js
@@ -200,6 +200,13 @@
if ($menu.hasClass('collapsible') && $menu.data('expandedstate')) {
$menu.toggleClass('open');
+ var targetAriaExpanded = $target.attr('aria-expanded');
+ if (targetAriaExpanded === 'false') {
+ $target.attr('aria-expanded', 'true');
+ } else if (targetAriaExpanded === 'true') {
+ $target.attr('aria-expanded', 'false');
+ }
+ $menu.toggleAttr('data-expanded', 'true', 'false');
var show = $menu.hasClass('open') ? 1 : 0;
var key = $menu.data('expandedstate');
$.post(OC.generateUrl("/apps/files/api/v1/toggleShowFolder/" + key), {show: show});