Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update js/jquery.mobile.listview.js

  • Loading branch information...
commit 2226a89f4e1ff7629ae4e587288c589cd8d20249 1 parent f70717d
Azuo authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  js/jquery.mobile.listview.js
3  js/jquery.mobile.listview.js
@@ -335,13 +335,14 @@ $.widget( "mobile.listview", $.mobile.widget, {
335 335 id = ( parentUrl || "" ) + "&" + $.mobile.subPageUrlKey + "=" + listId,
336 336 theme = list.jqmData( "theme" ) || o.theme,
337 337 countTheme = list.jqmData( "counttheme" ) || parentList.jqmData( "counttheme" ) || o.countTheme,
  338 + addBackBtn = list.jqmData( "add-back-btn" ) || $.mobile.page.prototype.options.addBackBtn,
338 339 newPage, anchor;
339 340
340 341 //define hasSubPages for use in later removal
341 342 hasSubPages = true;
342 343
343 344 newPage = list.detach()
344   - .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "'><div " + dns + "role='content'></div></div>" )
  345 + .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>" )
345 346 .parent()
346 347 .before( "<div " + dns + "role='header' " + dns + "theme='" + o.headerTheme + "'><div class='ui-title'>" + title + "</div></div>" )
347 348 .after( persistentFooterID ? $( "<div " + dns + "role='footer' " + dns + "id='"+ persistentFooterID +"'>") : "" )

0 comments on commit 2226a89

Please sign in to comment.
Something went wrong with that request. Please try again.