From 5262c2be56cee855ee008ba8c2816f36d9fa0342 Mon Sep 17 00:00:00 2001 From: Mat Marquis Date: Fri, 11 Nov 2011 15:20:36 -0500 Subject: [PATCH] =?UTF-8?q?Fixes=20#3020=20=E2=80=94=20Theme-dependent=20b?= =?UTF-8?q?ackgrounds=20should=20be=20applied=20only=20to=20=E2=80=98data-?= =?UTF-8?q?role=3Dcontent=E2=80=99=20within=20a=20dialog.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/jquery.mobile.page.sections.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.page.sections.js b/js/jquery.mobile.page.sections.js index 9782cdbcf06..93c7075e38f 100644 --- a/js/jquery.mobile.page.sections.js +++ b/js/jquery.mobile.page.sections.js @@ -15,6 +15,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi var $page = $( this ), o = $page.data( "page" ).options, + pageRole = $page.jqmData( "role" ), pageTheme = o.theme; $( ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')", this ).each(function() { @@ -73,7 +74,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi }); } else if ( role === "content" ) { - if ( contentTheme ) { + if ( contentTheme && pageRole === "dialog" ) { $this.addClass( "ui-body-" + ( contentTheme ) ); }