Showing with 1,596 additions and 1,026 deletions.
  1. +5 −0 .gitattributes
  2. +3 −9 .gitignore
  3. +5 −0 .travis.yml
  4. +1 −1 CONTRIBUTING.md
  5. +46 −0 Gruntfile.js
  6. +22 −2 LICENSE-MIT.txt → LICENSE.txt
  7. +7 −10 README.md
  8. +1 −1 config-sample.json
  9. +1 −1 entries/buttonMarkup.xml
  10. +5 −5 entries/checkboxradio.xml
  11. +4 −5 entries/classes.xml
  12. +29 −9 entries/collapsible.xml
  13. +1 −1 entries/collapsibleset.xml
  14. +1 −1 entries/controlgroup.xml
  15. +2 −2 entries/dialog.xml
  16. +15 −2 entries/filterable.xml
  17. +2 −2 entries/grid-layout.xml
  18. +1 −1 entries/jQuery.mobile.activePage.xml
  19. +3 −3 entries/jQuery.mobile.changePage.xml
  20. +4 −2 entries/jQuery.mobile.loadPage.xml
  21. +1 −0 entries/jQuery.mobile.navigate.xml
  22. +75 −0 entries/jQuery.mobile.path.isSameDomain.xml
  23. +49 −0 entries/jQuery.mobile.path.makePathAbsolute.xml
  24. +1 −1 entries/jQuery.mobile.path.parseUrl.xml
  25. +5 −9 entries/jqmRemoveData.xml
  26. +5 −5 entries/listview.xml
  27. +5 −5 entries/loader.xml
  28. +2 −2 entries/mobileinit.xml
  29. +1 −1 entries/orientationchange.xml
  30. +34 −10 entries/page.xml
  31. +4 −3 entries/pagebeforechange.xml
  32. +1 −13 entries/pagebeforecreate.xml
  33. +2 −11 entries/pagebeforehide.xml
  34. +2 −3 entries/pagebeforeload.xml
  35. +2 −9 entries/pagebeforeshow.xml
  36. +14 −14 entries/pagechange.xml
  37. +2 −3 entries/pagechangefailed.xml
  38. +176 −26 entries/pagecontainer.xml
  39. +2 −7 entries/pagecreate.xml
  40. +2 −3 entries/pagehide.xml
  41. +1 −1 entries/pageinit.xml
  42. +2 −3 entries/pageload.xml
  43. +2 −3 entries/pageloadfailed.xml
  44. +2 −2 entries/pageremove.xml
  45. +2 −3 entries/pageshow.xml
  46. +51 −21 entries/panel.xml
  47. +36 −6 entries/popup.xml
  48. +2 −4 entries/rangeslider.xml
  49. +88 −18 entries/selectmenu.xml
  50. +6 −4 entries/slider.xml
  51. +3 −3 entries/swipe.xml
  52. +1 −1 entries/swipeleft.xml
  53. +1 −1 entries/swiperight.xml
  54. +3 −0 entries/tap.xml
  55. +33 −19 entries/textinput.xml
  56. +1 −1 entries/throttledresize.xml
  57. +22 −4 entries/toolbar.xml
  58. +1 −1 entries/vmousedown.xml
  59. +2 −2 entries2html.xsl
  60. +0 −54 grunt.js
  61. +1 −1 includes/core-extension-desc.xml
  62. +5 −0 includes/pageevent-deprecation-1-6.xml
  63. +5 −0 includes/pageevent-deprecation.xml
  64. +11 −16 package.json
  65. +8 −8 pages/data-attribute.html
  66. +8 −8 pages/global-config.html
  67. +60 −1 pages/tabs.html
  68. +2 −2 resources/button/example48.html
  69. +2 −2 resources/button/example49.html
  70. +2 −2 resources/button/example5.html
  71. +2 −2 resources/button/example6.html
  72. +2 −2 resources/button/example7.html
  73. +2 −2 resources/buttonMarkup/example1.html
  74. +2 −2 resources/buttonMarkup/example10.html
  75. +2 −2 resources/buttonMarkup/example11.html
  76. +2 −2 resources/buttonMarkup/example12.html
  77. +2 −2 resources/buttonMarkup/example15.html
  78. +2 −2 resources/buttonMarkup/example16.html
  79. +2 −2 resources/buttonMarkup/example17.html
  80. +2 −2 resources/buttonMarkup/example2.html
  81. +2 −2 resources/buttonMarkup/example20.html
  82. +2 −2 resources/buttonMarkup/example22.html
  83. +2 −2 resources/buttonMarkup/example24.html
  84. +2 −2 resources/buttonMarkup/example26.html
  85. +2 −2 resources/buttonMarkup/example27.html
  86. +2 −2 resources/buttonMarkup/example3.html
  87. +2 −2 resources/buttonMarkup/example33.html
  88. +2 −2 resources/buttonMarkup/example34.html
  89. +2 −2 resources/buttonMarkup/example35.html
  90. +2 −2 resources/buttonMarkup/example4.html
  91. +2 −2 resources/buttonMarkup/example40.html
  92. +2 −2 resources/buttonMarkup/example41.html
  93. +2 −2 resources/buttonMarkup/example42.html
  94. +2 −2 resources/buttonMarkup/example43.html
  95. +2 −2 resources/buttonMarkup/example44.html
  96. +2 −2 resources/buttonMarkup/example45.html
  97. +2 −2 resources/buttonMarkup/example46.html
  98. +2 −2 resources/buttonMarkup/example47.html
  99. +2 −2 resources/buttonMarkup/example48.html
  100. +2 −2 resources/buttonMarkup/example49.html
  101. +2 −2 resources/buttonMarkup/example8.html
  102. +5 −5 resources/checkbox/example1.html
  103. +2 −2 resources/checkbox/example2.html
  104. +5 −5 resources/checkbox/example3.html
  105. +5 −5 resources/checkbox/example4.html
  106. +2 −2 resources/checkbox/example5.html
  107. +2 −2 resources/checkbox/example6.html
  108. +5 −5 resources/collapsible/example1.html
  109. +2 −2 resources/collapsible/example10.html
  110. +5 −5 resources/collapsible/example2.html
  111. +2 −2 resources/collapsible/example3.html
  112. +2 −2 resources/collapsible/example4.html
  113. +5 −5 resources/collapsible/example5.html
  114. +5 −5 resources/collapsible/example6.html
  115. +5 −5 resources/collapsible/example7.html
  116. +5 −5 resources/collapsible/example8.html
  117. +5 −5 resources/collapsible/example9.html
  118. +5 −5 resources/collapsibleset/example1.html
  119. +2 −2 resources/collapsibleset/example2.html
  120. +2 −2 resources/collapsibleset/example3.html
  121. +2 −2 resources/collapsibleset/example4.html
  122. +2 −2 resources/collapsibleset/example5.html
  123. +2 −2 resources/collapsibleset/example6.html
  124. +2 −2 resources/collapsibleset/example7.html
  125. +2 −2 resources/collapsibleset/example8.html
  126. +3 −3 resources/confirm.html
  127. +2 −2 resources/controlgroup/example1.html
  128. +2 −2 resources/controlgroup/example2.html
  129. +2 −2 resources/dialog/dialog0.html
  130. +2 −2 resources/dialog/dialog1.html
  131. +2 −2 resources/dialog/dialog2.html
  132. +2 −2 resources/dialog/dialog3.html
  133. +2 −2 resources/dialog/dialog4.html
  134. +2 −2 resources/dialog/dialog5.html
  135. +2 −2 resources/dialog/dialog6.html
  136. +2 −2 resources/dialog/dialog7.html
  137. +2 −2 resources/dialog/dialog8.html
  138. +2 −2 resources/dialog/example1.html
  139. +2 −2 resources/dialog/example2.html
  140. +2 −2 resources/dialog/example3.html
  141. +2 −2 resources/dialog/example4.html
  142. +2 −2 resources/dialog/example5.html
  143. +2 −2 resources/dialog/example6.html
  144. +2 −2 resources/dialog/example7.html
  145. +2 −2 resources/filterable/example1.html
  146. +2 −2 resources/filterable/example2.html
  147. +2 −2 resources/filterable/example3.html
  148. +2 −2 resources/filterable/example4.html
  149. +2 −2 resources/flipswitch/example1.html
  150. +2 −2 resources/flipswitch/example2.html
  151. +2 −2 resources/flipswitch/example3.html
  152. +2 −2 resources/grid-layout/example1.html
  153. +2 −2 resources/grid-layout/example10.html
  154. +2 −2 resources/grid-layout/example2.html
  155. +2 −2 resources/grid-layout/example3.html
  156. +4 −4 resources/grid-layout/example4.html
  157. +5 −5 resources/grid-layout/example5.html
  158. +2 −2 resources/grid-layout/example6.html
  159. +6 −6 resources/grid-layout/example7.html
  160. +7 −7 resources/grid-layout/example8.html
  161. +11 −11 resources/grid-layout/example9.html
  162. +2 −2 resources/hashchange/example1.html
  163. +59 −63 resources/icons-list.html
  164. +5 −5 resources/listview/example1.html
  165. +2 −2 resources/listview/example10.html
  166. +5 −5 resources/listview/example11.html
  167. +2 −2 resources/listview/example12.html
  168. +2 −2 resources/listview/example13.html
  169. +5 −5 resources/listview/example14.html
  170. +2 −2 resources/listview/example15.html
  171. +2 −2 resources/listview/example16.html
  172. +2 −2 resources/listview/example17.html
  173. +2 −2 resources/listview/example2.html
  174. +2 −2 resources/listview/example3.html
  175. +5 −5 resources/listview/example4.html
  176. +2 −2 resources/listview/example5.html
  177. +2 −2 resources/listview/example6.html
  178. +2 −2 resources/listview/example7.html
  179. +2 −2 resources/listview/example8.html
  180. +2 −2 resources/listview/example9.html
  181. BIN resources/loader/jquery-logo.png
  182. +2 −2 resources/mobileinit/example1.html
  183. +2 −2 resources/navbar/example1.html
  184. +2 −2 resources/navbar/example10.html
  185. +2 −2 resources/navbar/example11.html
  186. +2 −2 resources/navbar/example12.html
  187. +2 −2 resources/navbar/example13.html
  188. +2 −2 resources/navbar/example14.html
  189. +2 −2 resources/navbar/example15.html
  190. +2 −2 resources/navbar/example2.html
  191. +2 −2 resources/navbar/example3.html
  192. +2 −2 resources/navbar/example4.html
  193. +2 −2 resources/navbar/example5.html
  194. +2 −2 resources/navbar/example6.html
  195. +2 −2 resources/navbar/example7.html
  196. +2 −2 resources/navbar/example8.html
  197. +2 −2 resources/navbar/example9.html
  198. +3 −3 resources/page/example0.html
  199. +40 −0 resources/pagecontainer/example1.html
  200. +2 −2 resources/panel/example1.html
  201. +2 −2 resources/panel/example2.html
  202. +2 −2 resources/popup/example1.html
  203. +2 −2 resources/popup/example10.html
  204. +2 −2 resources/popup/example11.html
  205. +2 −2 resources/popup/example12.html
  206. +2 −2 resources/popup/example13.html
  207. +2 −2 resources/popup/example2.html
  208. +12 −2 resources/popup/example3.html
  209. +2 −2 resources/popup/example4.html
  210. +2 −2 resources/popup/example5.html
  211. +2 −2 resources/popup/example6.html
  212. +2 −2 resources/popup/example7.html
  213. +2 −2 resources/popup/example8.html
  214. +2 −2 resources/popup/example9.html
  215. +5 −5 resources/radiobutton/example1.html
  216. +2 −2 resources/radiobutton/example2.html
  217. +5 −5 resources/radiobutton/example3.html
  218. +2 −2 resources/radiobutton/example4.html
  219. +2 −2 resources/rangeslider/example1.html
  220. +2 −2 resources/rangeslider/example2.html
  221. +2 −2 resources/rangeslider/example3.html
  222. +2 −2 resources/rangeslider/example4.html
  223. +2 −2 resources/rangeslider/example5.html
  224. +2 −2 resources/rangeslider/example6.html
  225. +2 −2 resources/responsive-grid/example1.html
  226. +2 −2 resources/responsive-grid/example2.html
  227. +2 −2 resources/responsive-grid/example3.html
  228. +2 −2 resources/responsive-grid/example4.html
  229. +2 −2 resources/responsive-grid/example5.html
  230. +2 −2 resources/responsive-grid/example6.html
  231. +0 −29 resources/results.php
  232. +3 −3 resources/search-input/example1.html
  233. +3 −3 resources/search-input/example2.html
  234. +3 −3 resources/search-input/example3.html
  235. +3 −3 resources/search-input/example4.html
  236. +2 −2 resources/select/example1.html
  237. +2 −2 resources/select/example10.html
  238. +2 −2 resources/select/example11.html
  239. +2 −2 resources/select/example12.html
  240. +2 −2 resources/select/example13.html
  241. +2 −2 resources/select/example14.html
  242. +2 −2 resources/select/example15.html
  243. +2 −2 resources/select/example16.html
  244. +2 −2 resources/select/example17.html
  245. +2 −2 resources/select/example18.html
  246. +2 −2 resources/select/example2.html
  247. +2 −2 resources/select/example3.html
  248. +2 −2 resources/select/example4.html
  249. +2 −2 resources/select/example5.html
  250. +2 −2 resources/select/example6.html
  251. +2 −2 resources/select/example7.html
  252. +2 −2 resources/select/example8.html
  253. +2 −2 resources/select/example9.html
  254. +2 −2 resources/slider/example1.html
  255. +2 −2 resources/slider/example2.html
  256. +2 −2 resources/slider/example3.html
  257. +2 −2 resources/slider/example4.html
  258. +2 −2 resources/slider/example5.html
  259. +2 −2 resources/slider/example6.html
  260. +2 −2 resources/switch/example1.html
  261. +2 −2 resources/switch/example2.html
  262. +2 −2 resources/switch/example3.html
  263. +2 −2 resources/switch/example4.html
  264. +2 −2 resources/switch/example5.html
  265. +2 −2 resources/switch/example6.html
  266. +2 −2 resources/switch/example7.html
  267. +2 −2 resources/table-columntoggle/example1.html
  268. +2 −2 resources/table/example1.html
  269. +2 −2 resources/table/example2.html
  270. +3 −3 resources/textinput/example1.html
  271. +3 −3 resources/textinput/example2.html
  272. +3 −3 resources/textinput/example3.html
  273. +18 −18 resources/textinput/example4.html
  274. +2 −2 resources/textinput/example5.html
  275. +2 −2 resources/textinput/example6.html
  276. +3 −3 resources/textinput/example7.html
  277. +4 −3 resources/textinput/example8.html
  278. +2 −2 resources/throttledresize/example1.html
  279. +2 −2 resources/toolbar/example1.html
  280. +2 −2 resources/toolbar/example10.html
  281. +2 −2 resources/toolbar/example11.html
  282. +2 −2 resources/toolbar/example12.html
  283. +2 −2 resources/toolbar/example13.html
  284. +2 −2 resources/toolbar/example2.html
  285. +2 −2 resources/toolbar/example3.html
  286. +2 −2 resources/toolbar/example4.html
  287. +2 −2 resources/toolbar/example5.html
  288. +2 −2 resources/toolbar/example6.html
  289. +2 −2 resources/toolbar/example7.html
  290. +2 −2 resources/toolbar/example8.html
  291. +2 −2 resources/toolbar/example9.html
  292. +3 −3 resources/us.html
  293. +32 −13 resources/vclick/example1.html
  294. +2 −2 resources/vmousedown/example1.html
  295. +2 −2 resources/vmousemove/example1.html
  296. +2 −2 resources/vmouseout/example1.html
  297. +2 −2 resources/vmouseover/example1.html
  298. +2 −2 resources/vmouseup/example1.html
@@ -0,0 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto

# JS files must always use LF for tools to work
*.js eol=lf
@@ -1,9 +1,3 @@
dist
node_modules
config.json
.project
*~
*.diff
*.patch
.DS_Store
.settings
/dist/
/node_modules/
config.js*
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "0.12"
before_script:
- npm install -g grunt-cli
@@ -2,4 +2,4 @@ Welcome! Thanks for your interest in contributing to api.jquerymobile.com. You'r

You may also want to take a look at our [commit & pull request guide](http://contribute.jquery.org/commits-and-pull-requests/) and [style guides](http://contribute.jquery.org/style-guide/) for instructions on how to maintain your fork and submit your code. Before we can merge any pull request, we'll also need you to sign our [contributor license agreement](http://contribute.jquery.org/cla).

You can find us on [IRC](http://irc.jquery.org), specifically in [#jquerymobile-dev](irc://irc.freenode.net/#jquerymobile-dev) and [#jquery-content](irc://irc.freenode.net/#jquery-content) should you have any questions. If you've never contributed to open source before, we've put together [a short guide with tips, tricks, and ideas on getting started](http://contribute.jquery.org/open-source/).
You can find us on [IRC](http://irc.jquery.org), specifically in #jqueryui-dev and #jquery-content should you have any questions. If you've never contributed to open source before, we've put together [a short guide with tips, tricks, and ideas on getting started](http://contribute.jquery.org/open-source/).
@@ -0,0 +1,46 @@
module.exports = function( grunt ) {

grunt.loadNpmTasks( "grunt-jquery-content" );

grunt.initConfig({
xmllint: {
all: [
"entries/**",
"includes/**",
"categories.xml",
"entries2html.xsl",
"notes.xsl"
]
},
"build-posts": {
page: "pages/**"
},
"build-xml-entries": {
all: "entries/**"
},
"build-resources": {
all: "resources/**"
},
wordpress: (function() {

// There's no config for CI, but we don't need one for basic testing
var config = {};
try {
config = require( "./config" );
} catch ( error ) {}
config.dir = "dist/wordpress";
return config;
})()
});

grunt.registerTask( "lint", [ "xmllint" ] );

grunt.registerTask( "build", [
"build-posts",
"build-resources",
"build-xml-entries",
"build-xml-categories",
"build-xml-full"
]);

};
@@ -1,8 +1,13 @@
Copyright (c) 2013 jQuery Foundation, https://jquery.org/
Copyright jQuery Foundation and other contributors, https://jquery.org/

This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
and logs, available at https://github.com/jquery/api.jquerymobile.com
available at https://github.com/jquery/api.jquerymobile.com

The following license applies to all parts of this software except as
documented below:

====

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -22,3 +27,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

====

Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation and all examples and demos.

CC0: http://creativecommons.org/publicdomain/zero/1.0/

====

All files located in the node_modules directory are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.
@@ -1,15 +1,12 @@
api.jquerymobile.com
====================
# api.jquerymobile.com

## Building
## Building and Deploying

### Requirements
* <a href="http://www.xmlsoft.org/">libxml2</a>
* <a href="http://xmlsoft.org/XSLT/">libxslt</a>

The `xmllint` and `xsltproc` utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from <a href="http://sourceforge.net/projects/gnuwin32/files/">GnuWin32</a>.
To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/).

### Build
### Requirements

To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/).
* [libxml2](http://xmlsoft.org/)
* [libxslt](http://xmlsoft.org/libxslt/)

The `xmllint` and `xsltproc` utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from <a href="http://sourceforge.net/projects/gnuwin32/files/">GnuWin32</a>.
@@ -1,5 +1,5 @@
{
"url": "local.api.jquerymobile.com",
"url": "vagrant.api.jquerymobile.com",
"username": "admin",
"password": "secret"
}
@@ -4,7 +4,7 @@
<title>.buttonMarkup()</title>
<desc>Adds button styling to an element</desc>
<longdesc>
<strong>Note: .buttonMarkup() is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. You can now assign the full range of button style options to your <code>button</code> or <code>a</code> elements by simply adding classes.</strong>
<div class="warning"><strong>Note:</strong> .buttonMarkup() is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. You can now assign the full range of button style options to your <code>button</code> or <code>a</code> elements by simply adding classes.</div>
<p></p>
<h2 id="migration">Transition to class-based styling</h2>
Keeping in mind the followings will make it easy for you to transition from the button styling based on data attributes to the class-based process:
@@ -16,7 +16,7 @@
<label for="checkbox-1">I agree</label>
]]></code></pre>
<p>The above snippets will produce two basic checkboxes. The default styles will set the width of the element to 100% of the parent container.
<iframe src="/resources/checkbox/example1.html" style="width:100%;height:120px;border:0px"></iframe></p>
<iframe src="/resources/checkbox/example1.html" style="width:100%;height:130px;border:0px"></iframe></p>

<h3>Mini version</h3>

@@ -46,7 +46,7 @@
</fieldset>
</div>
]]></code></pre>
<iframe src="/resources/checkbox/example3.html" style="width:100%;height:100px;border:0px"></iframe>
<iframe src="/resources/checkbox/example3.html" style="width:100%;height:120px;border:0px"></iframe>

<h3>Vertically grouped checkboxes</h3>

@@ -71,7 +71,7 @@
</div>
]]></code></pre>

<iframe src="/resources/checkbox/example4.html" style="width:100%;height:220px;border:0px"></iframe>
<iframe src="/resources/checkbox/example4.html" style="width:100%;height:240px;border:0px"></iframe>

<h3>Horizontal toggle sets</h3>

@@ -123,7 +123,7 @@
]]></code></pre>

<p>This will produce a vertically grouped radio button set. The default styles set the width of the button group to 100% of the parent container and stacks the label on a separate line.
<iframe src="/resources/radiobutton/example1.html" style="width:100%;height:210px;border:0px"></iframe></p>
<iframe src="/resources/radiobutton/example1.html" style="width:100%;height:240px;border:0px"></iframe></p>

<h3>Mini version</h3>

@@ -169,7 +169,7 @@
</div>
]]></code></pre>

<iframe src="/resources/radiobutton/example3.html" style="width:100%;height:210px;border:0px"></iframe>
<iframe src="/resources/radiobutton/example3.html" style="width:100%;height:230px;border:0px"></iframe>

<h3>Horizontal radio button sets</h3>

@@ -50,8 +50,7 @@
</tr>
<tr>
<td class="enum-value"><div style="white-space: nowrap;">ui-shadow-icon</div></td>
<td>Draws a shadow around the icon.
<p class="warning"><strong>Note:</strong> This class is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</p></td>
<td>Draws a shadow around the icon.</td>
</tr>
<tr><th colspan="2">Icon positioning</th></tr>
<tr>
@@ -117,11 +116,11 @@
</tr>
<tr>
<td class="enum-value"><div style="white-space: nowrap;">ui-icon-<strong>carat-l</strong></div></td>
<td>A carat pointing left (&gt;).</td>
<td>A carat pointing left (&lt;).</td>
</tr>
<tr>
<td class="enum-value"><div style="white-space: nowrap;">ui-icon-<strong>carat-r</strong></div></td>
<td>A carat pointing right (&lt;).</td>
<td>A carat pointing right (&gt;).</td>
</tr>
<tr>
<td class="enum-value"><div style="white-space: nowrap;">ui-icon-<strong>carat-t</strong></div></td>
@@ -185,7 +184,7 @@
</tr>
<tr>
<td class="enum-value" id="theme-classes-ui-body"><div style="white-space: nowrap;">ui-body-[a-z]</div></td>
<td>Sets the color scheme (swatch) for a content block. This includes page content panes (<strong>deprecated as of 1.4.0</strong>), listview items, popups, collapsibles, the loader widget, sliders, and panels.</td>
<td>Sets the color scheme (swatch) for a content block. This includes page content panes (<span class="warning">deprecated as of 1.4.0</span>), listview items, popups, collapsibles, the loader widget, sliders, and panels.</td>
</tr>
<tr>
<td class="enum-value" id="theme-classes-ui-btn"><div style="white-space: nowrap;">ui-btn-[a-z]</div></td>
@@ -16,7 +16,7 @@
</div>
]]></code></pre>
<p>This code will create a collapsible widget like this:
<iframe src="/resources/collapsible/example1.html" style="width:100%;height:140px;border:0px"></iframe>
<iframe src="/resources/collapsible/example1.html" style="width:100%;height:150px;border:0px"></iframe>
</p>

<h3>Initially expanded collapsibles</h3>
@@ -28,7 +28,7 @@
]]></code></pre>

<p>This code will create a collapsible widget like this:
<iframe src="/resources/collapsible/example2.html" style="width:100%;height:140px;border:0px"></iframe></p>
<iframe src="/resources/collapsible/example2.html" style="width:100%;height:170px;border:0px"></iframe></p>

<h3>Non-inset collapsibles</h3>

@@ -43,7 +43,7 @@

<h3>Mini collapsibles</h3>

<p>For a more compact version that is useful in toolbars and tight spaces, add the <code>data-mini="true"</code> attribute to the element to create a <a href="../forms/forms-all-mini.html">mini version</a>.</p>
<p>For a more compact version that is useful in toolbars and tight spaces, add the <code>data-mini="true"</code> attribute to the element to create a mini version.</p>

<pre><code><![CDATA[
<div data-role="collapsible" data-mini="true">
@@ -55,12 +55,12 @@
<h3>Custom icons</h3>

<p>The default icon of collapsible headings can be overridden by using the <code>data-collapsed-icon</code> and <code>data-expanded-icon</code> attributes. The example below uses <code>data-collapsed-icon="arrow-r"</code> and <code>data-expanded-icon="arrow-d"</code>.
<iframe src="/resources/collapsible/example5.html" style="width:100%;height:140px;border:0px"></iframe></p>
<iframe src="/resources/collapsible/example5.html" style="width:100%;height:150px;border:0px"></iframe></p>

<h3>Icon positioning</h3>

<p>The default icon positioning of collapsible headings can be overridden by using the <code>data-iconpos</code> attribute. The example below uses <code>data-iconpos="right"</code>.
<iframe src="/resources/collapsible/example6.html" style="width:100%;height:140px;border:0px"></iframe></p>
<iframe src="/resources/collapsible/example6.html" style="width:100%;height:150px;border:0px"></iframe></p>

<h3>Theming collapsible content</h3>

@@ -75,7 +75,7 @@
</div>
]]></code></pre>

<iframe src="/resources/collapsible/example7.html" style="width:100%;height:140px;border:0px"></iframe>
<iframe src="/resources/collapsible/example7.html" style="width:100%;height:150px;border:0px"></iframe>

<h3>Theming collapsible headers</h3>

@@ -88,12 +88,12 @@
</div>
]]></code></pre>

<iframe src="/resources/collapsible/example8.html" style="width:100%;height:260px;border:0px"></iframe>
<iframe src="/resources/collapsible/example8.html" style="width:100%;height:270px;border:0px"></iframe>

<h3>Nested Collapsibles</h3>

<p>Collapsibles can be nested inside each other if needed. In this example, we're setting the content theme to provide clearer visual connection between the levels.
<iframe src="/resources/collapsible/example9.html" style="width:100%;height:540px;border:0px"></iframe></p>
<iframe src="/resources/collapsible/example9.html" style="width:100%;height:770px;border:0px"></iframe></p>

<h3>Collapsible sets (accordions)</h3>

@@ -148,6 +148,14 @@
</desc>
</type>
</option>
<option name="contentTheme" default="null" example-value='"b"'>
<desc>Sets the color scheme (swatch) for the collapsible content. It accepts a single letter from a-z that maps to the swatches included in your theme.
<p>If the value is unset for an individual collapsible container, but that container is part of a collapsible set, then the value is inherited from the parent collapsible set.</p>
<p>Possible values: swatch letter (a-z).</p>
<p>This option is also exposed as a data attribute: <code>data-content-theme="b"</code>.</p>
</desc>
<type name="String" />
</option>
<option name="corners" default="true" example-value="false">
<desc>Applies the theme border-radius if set to true.
<p>If the value is unset for an individual collapsible container, but that container is part of a collapsible set, then the value is inherited from the parent collapsible set.</p>
@@ -201,7 +209,7 @@
</desc>
<type name="Boolean" />
</option>
<option name="theme" default="null, inherited from parent" example-value='"b"'>
<option name="theme" default="null" example-value='"b"'>
<desc>Sets the color scheme (swatch) for the collapsible. It accepts a single letter from a-z that maps to the swatches included in your theme.
<p>If the value is unset for an individual collapsible container, but that container is part of a collapsible set, then the value is inherited from the parent collapsible set.</p>
<p>Possible values: swatch letter (a-z).</p>
@@ -234,14 +242,25 @@
</event>
</events>
<methods>
<method name="collapse">
<desc>
Collapses the <placeholder name="name"/>.
</desc>
</method>
<xi:include href="../includes/widget-method-destroy.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<xi:include href="../includes/widget-method-disable.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<xi:include href="../includes/widget-method-enable.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<method name="expand">
<desc>
Expands the <placeholder name="name"/>.
</desc>
</method>
<xi:include href="../includes/widget-method-option.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</methods>
<example>
<desc>A basic example of a collapsible content block.</desc>
<html><![CDATA[
<div data-role="page" id="page1">
<div data-role="header">
<h1>jQuery Mobile Example</h1>
</div>
@@ -251,6 +270,7 @@
<p>I'm the collapsible content. By default I'm closed, but you can click the header to open me.</p>
</div>
</div>
</div>
]]></html>
</example>
<category slug="widgets"/>
@@ -26,7 +26,7 @@
]]></code></pre>

<p>Here is an example of a <placeholder name="name"/> widget with 5 sections.
<iframe src="/resources/collapsibleset/example1.html" style="width:100%;height:310px;border:0px"></iframe></p>
<iframe src="/resources/collapsibleset/example1.html" style="width:100%;height:360px;border:0px"></iframe></p>

<h3>Non-inset <placeholder name="name"/> widgets</h3>

@@ -89,7 +89,7 @@ $( ".selector" ).controlgroup( "container" );
<desc>A basic example of a controlgroup.</desc>
<html><![CDATA[
<div data-role="page" id="page1">
<div data-role="content">
<div role="main" class="ui-content">
<div data-role="controlgroup">
<a href="#" class="ui-btn ui-corner-all">Yes</a>
<a href="#" class="ui-btn ui-corner-all">No</a>
@@ -5,7 +5,7 @@
<desc>Opens content in an interactive overlay.</desc>
<longdesc>
<div class="warning">
<strong>Dialogs are deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. The <code>dialog</code> option provided by the <code>page.dialog</code> extension of the <a href="/page/">page</a> widget allows you to style a page as a dialog, however, the special navigational handling will be removed. You may also consider implementing dialogs using <a href="/popup/">popup</a> widgets.</strong></div>
<strong>Note:</strong> Dialogs are deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. The <code>dialog</code> option provided by the <code>page.dialog</code> extension of the <a href="/page/">page</a> widget allows you to style a page as a dialog, however, the special navigational handling will be removed. You may also consider implementing dialogs using <a href="/popup/">popup</a> widgets.</div>
<p>Any page can be presented as a modal dialog by adding the <code>data-rel="dialog"</code> attribute to the page anchor link. When the "dialog" attribute is applied, the framework adds styles to add rounded corners, margins around the page and a dark background to make the "dialog" appear to be suspended above the page.</p>
<pre><code><![CDATA[
<a href="foo.html" data-rel="dialog">Open dialog</a>
@@ -15,7 +15,7 @@

<p>You can open a dialog programmatically by calling the <a href="/jQuery.mobile.changePage/"><strong>$.mobile.changePage</strong></a> method:</p>
<pre><code><![CDATA[
// Dialog loaded via AJAX
// Dialog loaded via Ajax
$.mobile.changePage( "path/to/dialog.html", { role: "dialog" } );
// Dialog present in a multipage document