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.

This commit is contained in:
Mat Marquis 2011-10-22 13:21:45 -04:00
parent 55d89893a2
commit 53099d8cc4
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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>"+