Popup: reverse orientation bug has been fixed
[platform/framework/web/web-ui-fw.git] / libs / patch / 0036-jQM-Support-accessibility-for-collapsible.patch
1 From 61d133a822b45b01bb31985c8b8142457d17b5c7 Mon Sep 17 00:00:00 2001
2 From: Woosung Sohn <woosungim.sohn@samsung.com>
3 Date: Tue, 19 Mar 2013 15:20:13 +0900
4 Subject: [PATCH] JQM Support accessibility for collapsible
5
6 Change-Id: Iaa49fa1ff977230320daf9380dfe6ec3cbb72080
7 ---
8  .../jquery-mobile-1.2.0/js/widgets/collapsible.js  |    8 +++++---
9  1 file changed, 5 insertions(+), 3 deletions(-)
10
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js b/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js
12 index 26dbb61..8398de4 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/collapsible.js
15 @@ -11,8 +11,8 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.buttonMarkup" ]
16  
17  $.widget( "mobile.collapsible", $.mobile.widget, {
18         options: {
19 -               expandCueText: " click to expand contents",
20 -               collapseCueText: " click to collapse contents",
21 +               expandCueText: " Expandable list, tap to open list",
22 +               collapseCueText: " Expandable list, tap to close list",
23                 collapsed: true,
24                 heading: "h1,h2,h3,h4,h5,h6,legend",
25                 theme: null,
26 @@ -103,7 +103,8 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
27                                         icon: collapsedIcon,
28                                         mini: o.mini,
29                                         theme: o.theme
30 -                               });
31 +                               })
32 +                               .attr( "role", "");
33  
34                 if ( !!o.inset ) {                              
35                         collapsibleHeading
36 @@ -138,6 +139,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
37  
38                                         $this.toggleClass( "ui-collapsible-collapsed", isCollapse );
39                                         collapsibleContent.toggleClass( "ui-collapsible-content-collapsed", isCollapse ).attr( "aria-hidden", isCollapse );
40 +                                       collapsibleContent.children( "li" ).not( "ui-collapsible-content" ).attr( "tabindex", isCollapse ? "" : "0" );
41  
42                                         if ( contentTheme && !!o.inset && ( !collapsibleSet.length || collapsible.jqmData( "collapsible-last" ) ) ) {
43                                                 collapsibleHeading
44 -- 
45 1.7.9.5
46