Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update js/jquery.mobile.listview.js

  • Loading branch information...
commit 2226a89f4e1ff7629ae4e587288c589cd8d20249 1 parent f70717d
@Azuo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  js/jquery.mobile.listview.js
View
3  js/jquery.mobile.listview.js
@@ -335,13 +335,14 @@ $.widget( "mobile.listview", $.mobile.widget, {
id = ( parentUrl || "" ) + "&" + $.mobile.subPageUrlKey + "=" + listId,
theme = list.jqmData( "theme" ) || o.theme,
countTheme = list.jqmData( "counttheme" ) || parentList.jqmData( "counttheme" ) || o.countTheme,
+ addBackBtn = list.jqmData( "add-back-btn" ) || $.mobile.page.prototype.options.addBackBtn,
newPage, anchor;
//define hasSubPages for use in later removal
hasSubPages = true;
newPage = list.detach()
- .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "'><div " + dns + "role='content'></div></div>" )
+ .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "' " + dns + "add-back-btn='" + addBackBtn + "'><div " + dns + "role='content'></div></div>" )
.parent()
.before( "<div " + dns + "role='header' " + dns + "theme='" + o.headerTheme + "'><div class='ui-title'>" + title + "</div></div>" )
.after( persistentFooterID ? $( "<div " + dns + "role='footer' " + dns + "id='"+ persistentFooterID +"'>") : "" )
Please sign in to comment.
Something went wrong with that request. Please try again.