mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-29 10:24:45 +00:00
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:
parent
55d89893a2
commit
53099d8cc4
2 changed files with 3 additions and 3 deletions
|
|
@ -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>"+
|
||||
|
|
|
|||
Loading…
Reference in a new issue