Permalink
Browse files

Re-addresses #2776, and corrects an issue introduced in pull request #…

…2783. Incorrect default theme was being set on the backdrop of dialog-style select menus.
  • Loading branch information...
1 parent 55d8989 commit 53099d8cc4dc149d08ce849b54e3094289b100b7 @Wilto Wilto committed Oct 22, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 js/jquery.mobile.dialog.js
  2. +1 −1 js/jquery.mobile.forms.select.custom.js
@@ -9,7 +9,7 @@
$.widget( "mobile.dialog", $.mobile.widget, {
options: {
closeBtnText : "Close",
- dialogTheme : "a",
+ theme : "a",
initSelector : ":jqmData(role='dialog')"
},
_create: function() {
@@ -22,7 +22,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
$el.removeClass( pageTheme[ 0 ] );
}
- $el.addClass( "ui-body-" + this.options.dialogTheme );
+ $el.addClass( "ui-body-" + this.options.theme );
// Class the markup for dialog styling
// Set aria role
@@ -17,7 +17,7 @@
isMultiple = widget.isMultiple = widget.select[ 0 ].multiple,
buttonId = selectID + "-button",
menuId = selectID + "-menu",
- menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.menuPageTheme +"'>" +
+ menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.overlayTheme +"'>" +
"<div data-" + $.mobile.ns + "role='header'>" +
"<div class='ui-title'>" + label.getEncodedText() + "</div>"+
"</div>"+

0 comments on commit 53099d8

Please sign in to comment.