Permalink
Browse files

Update js/jquery.mobile.listview.js

  • Loading branch information...
1 parent f70717d commit 2226a89f4e1ff7629ae4e587288c589cd8d20249 @Azuo committed Mar 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 +"'>") : "" )

0 comments on commit 2226a89

Please sign in to comment.