Skip to content

Commit 506c1d9

Browse files
committed
Merge remote branch 'jquery/master'
2 parents 04e75b0 + 5512c8a commit 506c1d9

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

js/jquery.mobile.collapsible.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
7272
//events
7373
collapsibleContain
7474
.bind( "collapse", function( event ){
75-
if( !event.isDefaultPrevented() ){
75+
if( !event.isDefaultPrevented() && $( event.target ).closest( ".ui-collapsible-contain" ).is( collapsibleContain ) ){
7676
event.preventDefault();
7777
collapsibleHeading
7878
.addClass( "ui-collapsible-heading-collapsed" )
@@ -89,7 +89,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
8989
}
9090

9191
} )
92-
.bind( "expand", function( event ){
92+
.bind( "expand", function( event ){
9393
if( !event.isDefaultPrevented() ){
9494
event.preventDefault();
9595
collapsibleHeading
@@ -114,14 +114,16 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
114114
collapsibleParent
115115
.jqmData( "collapsiblebound", true )
116116
.bind( "expand", function( event ){
117-
$( this ).find( ".ui-collapsible-contain" )
118-
.not( $( event.target ).closest( ".ui-collapsible-contain" ) )
119-
.not( "> .ui-collapsible-contain .ui-collapsible-contain" )
117+
118+
$( event.target )
119+
.closest( ".ui-collapsible-contain" )
120+
.siblings( ".ui-collapsible-contain" )
120121
.trigger( "collapse" );
122+
121123
} );
122124

123125

124-
var set = collapsibleParent.find( ":jqmData(role=collapsible )" );
126+
var set = collapsibleParent.find( ":jqmData(role=collapsible ):first" );
125127

126128
set.first()
127129
.find( "a:eq(0)" )

js/jquery.mobile.forms.checkboxradio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
150150
},
151151

152152
disable: function(){
153-
this.element.attr("disabled",true).parent().addClass("ui-disabled");
153+
this.element.prop("disabled",true).parent().addClass("ui-disabled");
154154
},
155155

156156
enable: function(){
157-
this.element.attr("disabled",false).parent().removeClass("ui-disabled");
157+
this.element.prop("disabled",false).parent().removeClass("ui-disabled");
158158
}
159159
});
160160
})( jQuery );

themes/default/jquery.mobile.forms.select.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.ui-select select { position: absolute; left: -9999px; top: -9999px; }
88
.ui-select .ui-btn { overflow: hidden; }
99
.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; height: 100%; text-indent: -999em; opacity: 0.0001; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); }
10+
.ui-select .ui-btn option { text-indent: 0; }
1011
.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
1112

1213
.ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }

0 commit comments

Comments
 (0)