Skip to content
Browse files

#13 Thanks to @blq

  • Loading branch information...
1 parent d02d822 commit 6a67173f11ef4f59828a2b484c60897b1acbb80c @hiroprotagonist committed Dec 6, 2011
Showing with 23 additions and 22 deletions.
  1. +22 −21 examples/multipage.html
  2. +1 −1 jquery.mobile.actionsheet.js
View
43 examples/multipage.html
@@ -19,20 +19,19 @@
<div data-role="content" >
<h2>One</h2>
- <p><a href="#two" data-role="button">Show page "two"</a></p>
- <a data-icon="plus" data-role="actionsheet" data-sheet='sheet1'>Open</a>
- <div id="sheet1" data-role="content">
- <ul id="sizes_list_select" data-role="listview" data-inset="false" data-theme="b">
+ <p><a href="#two" data-role="button">Show page "two"</a></p>
+ <a data-icon="plus" data-role="actionsheet" data-sheet='sheet1'>Open</a>
+ <div id="sheet1" data-role="content">
+ <ul id="sizes_list_select" data-role="listview" data-inset="false" data-theme="b">
<li data-theme="b" data-icon="check" >
- First Content
- </li>
+ First Content
+ </li>
<li data-theme="b" data-icon="false" >
- <h2>Moin Moin</h2>
+ <h2>Moin Moin</h2>
</li>
- <a href='#' data-rel='close' data-role="button">Close</a>
+ <a href='#' data-rel='close' data-role="button">Close</a>
</ul>
- </div>
-
+ </div>
</div><!-- /content -->
<div data-role="footer" data-theme="d">
@@ -44,24 +43,26 @@
<div data-role="page" id="two" data-theme="a">
<div data-role="header">
- <h1>Page Two</h1>
+ <h1>Page Two</h1>
+ <a href="#" data-role="actionsheet">Open</a>
+ <div><h1>Hi</h1></div>
</div><!-- /header -->
<div data-role="content" data-theme="a">
- <h2>Two</h2>
- <p><a href="#one" data-role="button">Show page "one"</a></p>
- <a data-icon="plus" data-role="actionsheet" data-sheet="sheet0">Open</a>
- <div id="sheet0" data-role="content">
- <ul id="sizes_list_select" data-role="listview" data-inset="false" data-theme="b">
+ <h2>Two</h2>
+ <p><a href="#one" data-role="button">Show page "one"</a></p>
+ <a data-icon="plus" data-role="actionsheet" data-sheet="sheet0">Open</a>
+ <div id="sheet0" data-role="content">
+ <ul id="sizes_list_select" data-role="listview" data-inset="false" data-theme="b">
<li data-theme="b" data-icon="check" >
- Second Content
- </li>
+ Second Content
+ </li>
<li data-theme="b" data-icon="false" >
- <h2>Ahoi</h2>
+ <h2>Ahoi</h2>
</li>
- <a href='#' data-rel='close' data-role="button">Close</a>
+ <a href='#' data-rel='close' data-role="button">Close</a>
</ul>
- </div>
+ </div>
</div><!-- /content -->
<div data-role="footer">
View
2 jquery.mobile.actionsheet.js
@@ -21,7 +21,7 @@
// sheet-content is not part of the page-content,
// maybe it's part of the page-header: move it to page-content!
var currentContent =
- this.content.parents(':jqmData(role="page")').children(':jqmData(role="content")');
+ this.element.parents(':jqmData(role="page")').children(':jqmData(role="content")');
this.content.remove().appendTo(currentContent);
}
//setup command buttons

0 comments on commit 6a67173

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