Skip to content

Commit 991db0d

Browse files
committed
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2 parents ef9d55f + bb67018 commit 991db0d

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ init:
110110

111111
# Build the minified JS file
112112
min: init js
113-
# Build the minified Javascript file
113+
# Build the minified JavaScript file
114114
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${MIN}
115115
@@java -jar build/google-compiler-20110405.jar --js ${OUTPUT}/${JS} --warning_level QUIET --js_output_file ${MIN}.tmp
116116
@@cat ${MIN}.tmp >> ${OUTPUT}/${MIN}

js/jquery.mobile.forms.checkboxradio.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
5858
}
5959

6060
self._cacheVals();
61-
62-
input.attr( "checked", inputtype === "radio" && true || !input.is( ":checked" ) );
61+
62+
input.prop( "checked", inputtype === "radio" && true || !(input.prop("checked")) );
6363

6464
// input set for common radio buttons will contain all the radio
6565
// buttons, but will not for checkboxes. clearing the checked status
6666
// of other radios ensures the active button state is applied properly
67-
self._getInputSet().not(input).removeAttr('checked');
67+
self._getInputSet().not(input).prop('checked', false);
6868

6969
self._updateAll();
7070
return false;
@@ -79,6 +79,13 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
7979
},
8080

8181
vclick: function(){
82+
// adds checked attribute to checked input when keyboard is used
83+
if ($(this).is(":checked")) {
84+
$(this).prop( "checked", true);
85+
self._getInputSet().not($(this)).prop('checked', false);
86+
} else {
87+
$(this).prop("checked", false);
88+
}
8289
self._updateAll();
8390
},
8491

@@ -125,7 +132,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
125132

126133
// input[0].checked expando doesn't always report the proper value
127134
// for checked='checked'
128-
if ( $(input[0]).attr('checked') ) {
135+
if ( $(input[0]).prop('checked') ) {
129136
label.addClass( $.mobile.activeBtnClass );
130137
icon.addClass( this.checkedicon ).removeClass( this.uncheckedicon );
131138

themes/default/jquery.mobile.core.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
.ui-mobile-viewport { margin: 0; overflow-x: hidden; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
1515

1616
/* "page" containers - full-screen views, one should always be in view post-pageload */
17-
.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
17+
.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; height: auto !important; height: 100%; position: absolute; display: none; border: 0; }
1818
.ui-mobile .ui-page-active { display: block; overflow: visible; }
1919

2020
/*orientations from js are available */
2121
.portrait,
22-
.portrait .ui-page { min-height: 100%; }
22+
.portrait .ui-page,
2323
.landscape,
24-
.landscape .ui-page { min-height: 100%; }
24+
.landscape .ui-page { min-height: 100%; height: auto !important; height: 100%; }
2525

2626
/* loading screen */
2727
.ui-loading .ui-mobile-viewport { overflow: hidden !important; }

0 commit comments

Comments
 (0)