Skip to content

Commit 326788c

Browse files
committed
page sections whitespace
1 parent cc3b57e commit 326788c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

js/jquery.mobile.page.sections.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $.mobile.page.prototype.options.footerTheme = "a";
1414
$.mobile.page.prototype.options.contentTheme = null;
1515

1616
$( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagecreate", function( e ) {
17-
17+
1818
var $page = $( this ),
1919
o = $page.data( "page" ).options,
2020
pageRole = $page.jqmData( "role" ),
@@ -29,12 +29,12 @@ $( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagec
2929
leftbtn,
3030
rightbtn,
3131
backBtn;
32-
33-
$this.addClass( "ui-" + role );
32+
33+
$this.addClass( "ui-" + role );
3434

3535
//apply theming and markup modifications to page,header,content,footer
3636
if ( role === "header" || role === "footer" ) {
37-
37+
3838
var thisTheme = theme || ( role === "header" ? o.headerTheme : o.footerTheme ) || pageTheme;
3939

4040
$this
@@ -49,11 +49,11 @@ $( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagec
4949
rightbtn = $headeranchors.hasClass( "ui-btn-right" );
5050

5151
leftbtn = leftbtn || $headeranchors.eq( 0 ).not( ".ui-btn-right" ).addClass( "ui-btn-left" ).length;
52-
52+
5353
rightbtn = rightbtn || $headeranchors.eq( 1 ).addClass( "ui-btn-right" ).length;
54-
54+
5555
// Auto-add back btn on pages beyond first view
56-
if ( o.addBackBtn &&
56+
if ( o.addBackBtn &&
5757
role === "header" &&
5858
$( ".ui-page" ).length > 1 &&
5959
$this.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
@@ -62,7 +62,7 @@ $( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagec
6262
backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" )
6363
// If theme is provided, override default inheritance
6464
.attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme || thisTheme )
65-
.prependTo( $this );
65+
.prependTo( $this );
6666
}
6767

6868
// Page title

0 commit comments

Comments
 (0)