diff --git a/docs/_assets/css/jqm-docs.css b/docs/_assets/css/jqm-docs.css index f467d6461af..56f6293b377 100644 --- a/docs/_assets/css/jqm-docs.css +++ b/docs/_assets/css/jqm-docs.css @@ -6,7 +6,7 @@ cobblers, shoes, body { background: #dddddd; } -.ui-mobile #jqm-home { background: #e5e5e5 url(../images/jqm-sitebg.png) top center repeat-x; } +.ui-mobile .type-home { background: #e5e5e5 url(../images/jqm-sitebg.png) top center repeat-x; } .ui-mobile #jqm-homeheader { padding: 40px 10px 0; text-align: center; margin: 0 auto; } .ui-mobile #jqm-homeheader h1 { margin: 0 0 ; } .ui-mobile #jqm-homeheader p { margin: .3em 0 0; line-height: 1.3; font-size: .9em; font-weight: bold; color: #666; } diff --git a/index.html b/index.html index dfe6b91d460..ff9e3ba1465 100755 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ -
+
diff --git a/js/jquery.mobile.init.js b/js/jquery.mobile.init.js index 67d4fd98c09..9cd3cf87cbb 100644 --- a/js/jquery.mobile.init.js +++ b/js/jquery.mobile.init.js @@ -83,9 +83,9 @@ $pages.add( ":jqmData(role='dialog')" ).each(function() { var $this = $(this); - // unless the data url is already set set it to the id + // unless the data url is already set set it to the pathname if ( !$this.jqmData("url") ) { - $this.attr( "data-" + $.mobile.ns + "url", $this.attr( "id" ) ); + $this.attr( "data-" + $.mobile.ns + "url", $this.attr( "id" ) || location.pathname ); } });