From 1122b220448979a675858991620f03db443d628f Mon Sep 17 00:00:00 2001 From: Michael O'Hearn Date: Fri, 11 Feb 2011 11:19:24 -0800 Subject: [PATCH] changed the listview aside to use the HTML5 aside element per scottjehl's suggestion in issue #580 --- docs/lists/docs-lists.html | 2 +- docs/lists/lists-formatting.html | 18 +++++++++--------- docs/toolbars/bars-fixed.html | 24 ++++++++++++------------ docs/toolbars/footer-persist-c.html | 18 +++++++++--------- js/jquery.mobile.listview.js | 6 ++++-- 5 files changed, 35 insertions(+), 33 deletions(-) diff --git a/docs/lists/docs-lists.html b/docs/lists/docs-lists.html index 53513c488cf..4e6b3bd468f 100755 --- a/docs/lists/docs-lists.html +++ b/docs/lists/docs-lists.html @@ -72,7 +72,7 @@

Text formatting & counts

List with count bubbles List with text formatting diff --git a/docs/lists/lists-formatting.html b/docs/lists/lists-formatting.html index 4ad0668fa5d..3ae78ac67cc 100755 --- a/docs/lists/lists-formatting.html +++ b/docs/lists/lists-formatting.html @@ -26,56 +26,56 @@

List formatting

Stephen Weber

You've been invited to a meeting at Filament Group in Boston, MA

Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.

-

6:24PM

+
  • jQuery Team

    Boston Conference Planning

    In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.

    -

    9:18AM

    +
  • Thursday, October 7, 2010 1
  • Avery Walker

    Re: Dinner Tonight

    Sure, let's plan on meeting at Highland Kitchen at 8:00 tonight. Can't wait!

    -

    4:48PM

    +
  • Wednesday, October 6, 2010 3
  • Amazon.com

    4-for-3 Books for Kids

    As someone who has purchased children's books from our 4-for-3 Store, you may be interested in these featured books.

    -

    12:47PM

    +
  • Mike Taylor

    Re: This weekend in Maine

    Hey little buddy, sorry but I can't make it up to vacationland this weekend. Maybe next weekend?

    -

    6:24AM

    +
  • Redfin

    Redfin listing updates for today

    There are 3 updates for the home on your watchlist: 1 updated MLS listing and 2 homes under contract.

    -

    5:52AM

    +
  • Tuesday, October 5, 2010 3
  • Angela Smith

    Link Request

    My name is Angela Smith, SEO Consultant. I've greatly enjoyed looking through your site and I was wondering if you'd be interested in providing a link

    -

    6:24AM

    +
  • Mike Taylor

    This weekend in Maine

    Sounds good, let me check into our plans.

    -

    6:24AM

    +
  • - \ No newline at end of file + diff --git a/docs/toolbars/bars-fixed.html b/docs/toolbars/bars-fixed.html index 0e319aa3f5f..bd5d245016d 100755 --- a/docs/toolbars/bars-fixed.html +++ b/docs/toolbars/bars-fixed.html @@ -46,69 +46,69 @@

    And an inset list

    Broken Bells

    Broken Bells

    -

    $11.99

    +
  • Warning

    Hot Chip

    -

    $12.99

    +
  • Wolfgang Amadeus Phoenix

    Phoenix

    -

    $11.99

    +
  • Of The Blue Colour Of The Sky

    Ok Go

    -

    $10.99

    +
  • Elephant

    The White Stripes

    -

    $9.99

    +
  • Kid A

    Radiohead

    -

    $11.99

    +
  • XX

    XX

    -

    $10.99

    +
  • Congratulations

    MGMT

    -

    $12.99

    +
  • Ashes Grammar

    A Sunny Day in Glasgow

    -

    $11.99

    +
  • Hot Fuss

    Killers

    -

    $12.99

    +
  • The Suburbs

    Arcade Fire

    -

    $12.99

    +
  • @@ -128,4 +128,4 @@

    Fixed Footer

    - \ No newline at end of file + diff --git a/docs/toolbars/footer-persist-c.html b/docs/toolbars/footer-persist-c.html index b95f3350c0a..ec650a29039 100755 --- a/docs/toolbars/footer-persist-c.html +++ b/docs/toolbars/footer-persist-c.html @@ -24,52 +24,52 @@

    Inbox

    Stephen Weber

    You've been invited to a meeting at Filament Group in Boston, MA

    Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.

    -

    6:24PM

    +
  • jQuery Team

    Boston Conference Planning

    In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.

    -

    9:18AM

    +
  • Thursday, October 7, 2010 1
  • Avery Walker

    Re: Dinner Tonight

    Sure, let's plan on meeting at Highland Kitchen at 8:00 tonight. Can't wait!

    -

    4:48PM

    +
  • Wednesday, October 6, 2010 3
  • Amazon.com

    4-for-3 Books for Kids

    As someone who has purchased children's books from our 4-for-3 Store, you may be interested in these featured books.

    -

    12:47PM

    +
  • Mike Taylor

    Re: This weekend in Maine

    Hey little buddy, sorry but I can't make it up to vacationland this weekend. Maybe next weekend?

    -

    6:24AM

    +
  • Redfin

    Redfin listing updates for today

    There are 3 updates for the home on your watchlist: 1 updated MLS listing and 2 homes under contract.

    -

    5:52AM

    +
  • Tuesday, October 5, 2010 3
  • Angela Smith

    Link Request

    My name is Angela Smith, SEO Consultant. I've greatly enjoyed looking through your site and I was wondering if you'd be interested in providing a link

    -

    6:24AM

    +
  • Mike Taylor

    This weekend in Maine

    Sounds good, let me check into our plans.

    -

    6:24AM

    +
  • @@ -86,4 +86,4 @@

    Mike Taylor

    - \ No newline at end of file + diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index 919cb92572d..05bb505ad85 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -125,14 +125,16 @@ $.widget( "mobile.listview", $.mobile.widget, { item.find( "h1, h2, h3, h4, h5, h6" ).addClass( "ui-li-heading" ); - item.find( "p, dl" ).addClass( "ui-li-desc" ); + item.find( "p, dl, aside" ).addClass( "ui-li-desc" ); + + item.find( "aside" ).addClass("ui-li-aside"); item.find( "li" ).find( "img:eq(0)" ).addClass( "ui-li-thumb" ).each(function() { $( this ).closest( "li" ) .addClass( $(this).is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" ); }); - var aside = item.find( ".ui-li-aside" ); + var aside = item.find( "aside" ); if ( aside.length ) { aside.each(function(i, el) {