Commit graph

1400 commits

Author SHA1 Message Date
John Bender
b41b0573d2 leverage the path helpers to get this right 2011-08-16 13:25:04 -07:00
John Bender
72ce65767e support embedded pages as a hash since the concatenated form represents a file 2011-08-16 12:55:03 -07:00
John Bender
43b1b776d9 minor refactor for comprehension 2011-08-15 17:01:37 -07:00
scottjehl
c864dac3b1 added replacestate to the tests, as that's the method we're using 2011-08-14 13:44:40 -04:00
scottjehl
0512916e72 centralized the hashchange fired flag 2011-08-14 10:20:14 -04:00
scottjehl
854ce44179 timeout number is arbitrary. Still looking for a way around it though. 2011-08-14 10:03:16 -04:00
scottjehl
2d29880f4c whitespace stuff 2011-08-14 09:57:12 -04:00
scottjehl
3ebe7b4218 just use location.pathname. same thing, in hindsight. 2011-08-14 09:30:33 -04:00
scottjehl
6d2f9737db conditionally trigger the hashchange after a popstate, only if it doesn't trigger its own. 2011-08-12 12:53:07 -04:00
scottjehl
e1fbaf9cce updated to support deep links to nested lists and dialog parent pages. Still battling a 2x back history issue on those. 2011-08-05 18:49:16 -04:00
scottjehl
e564eb1c5f first pass at implementing pushstate support from an external file. 2011-08-05 18:49:16 -04:00
scottjehl
d120404ead Merge remote branch 'origin/master' 2011-08-05 09:58:30 -04:00
scottjehl
28eebc25de Brought back the page content div theme inheritance from b1. Thanks to abdulqadir for the suggestion. Fixes #2221 2011-08-05 09:58:25 -04:00
Ghislain Seguin
b23d444c71 Merge pull request #2216 from johnbender/listview-filter-callback
Listview filter callback
2011-08-04 16:12:53 -07:00
John Bender
8660befda8 removed global from listview 2011-08-03 17:50:48 -07:00
John Bender
6bbf830da8 simple filterCallback in the options to delegate complex search to end users 2011-08-03 17:10:44 -07:00
John Bender
bda2358e6c Merge branch 'fcheslack-footer-control-group-buttons' 2011-08-03 13:39:22 -07:00
John Bender
6529dc7f8c Merge branch 'footer-control-group-buttons' of https://github.com/fcheslack/jquery-mobile into fcheslack-footer-control-group-buttons 2011-08-03 13:19:28 -07:00
John Bender
3dbb018e82 Merge pull request #2173 from SamuelKC/selecthidefix
Fix issue of the select menu not closing on Chrome - Fixes 2198, 2194, 2197
2011-08-03 11:52:17 -07:00
gseguin
cce89cb91d Merge remote-tracking branch 'upstream/master' 2011-08-03 11:16:20 -07:00
gseguin
6da588c394 Coding standards 2011-08-03 11:15:03 -07:00
Rick Waldron
953f0cdf97 Core Style Conformance updates; jquery.mobile.support.js 2011-08-03 13:19:53 -04:00
scottjehl
a48128f9a3 wrapped in parens for clarity 2011-08-03 12:15:04 -04:00
scottjehl
d42db4d4ee This change moves the ajax navigation opt-out list (which contains, mainly, browsers that have broken history tracking of hash changes) over to the support.js file, and added a multi-tierd Nokia condition that checks a number of UA conditions to try and pinpoint Nokia + Symbian + Webkit + 7.3-or-older. Big thanks to Bryan and Stephanie at Yiibu for their helpful article on Nokia device detection. That said, we would LOVE to find a non-UA based way to handle this detection. Reluctantly, this seems to do what we need at the moment, while assuming hash history will be improved in any post-7.3 release.
Also included in this commit is a Nokia-specific condition that re-appends existing stylesheets to force them to render, as all pre-7.3 devices we tested would not render the CSS if it was referenced before the JavaScript (as we'd recommend doing). There may be a non-JS way to work around this problem, but for now, this seems to do the trick.
2011-08-03 12:15:04 -04:00
Scott Jehl
b7a19b604c Merge pull request #2184 from rwldrn/jquery.mobile.fixHeaderFooter.js
Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js
2011-08-02 07:24:08 -07:00
John Bender
f1d964e9e9 fix for cached page removal breaking dialog sized select menus Fixes #2181 2011-08-01 18:08:28 -07:00
Rick Waldron
627b9189d6 Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js 2011-08-01 18:34:49 -04:00
scottjehl
faf26d8f6d namespaced $.fixedToolbars to $.mobile. Kept a deprecated pointer to $.fixedToolbars that we'll want to remove later. This feature can now be documented. Addresses Issue #2024 2011-07-31 20:35:18 -04:00
scottjehl
ee17b4f05c Ensure that navigating backwards through dialogs works as expected when domCache is false (which is the default now). 2011-07-31 10:03:22 -04:00
scottjehl
be74405b49 Added a configurable timeout to $.mobile.loadPage to give pages that are being fetched from cache a little time to load before a loading message appears. We'll need to tweak this timer based on device testing to determine how long it takes on average to fetch a cached page. If the delay ends up needing to be longer than 300ms or so to suit some devices, it's probably not worth having this feature at all. 2011-07-30 08:33:04 -04:00
scottjehl
bdba60efd5 removed urlHistory references to (and use of) each entry's "page" property, which kept a reference to the DOM elements of each page that had been loaded. This fixes leaking memory on removed pages, and outsources page requests to the browser cache (for real this time :) ). 2011-07-29 19:51:17 -04:00
John Bender
50acf2eb7c fix to use options defined on page widget to determing domCache settings 2011-07-29 12:55:40 -07:00
John Bender
27b4ba1691 ajaxDomCaching -> domCache 2011-07-29 10:10:26 -07:00
John Bender
180243e9ad added a todo for the subpage tracking 2011-07-29 10:10:26 -07:00
John Bender
85114be097 use childPages method to abstract method for finding child pages, hopefully we can find something better than the url selector 2011-07-29 10:10:25 -07:00
John Bender
3035387446 first test for nested page removal/caching 2011-07-29 10:10:25 -07:00
John Bender
d716f3e9e7 moved dom cache check above the enhance to let widgets unbind parent page hide behaviour. added parent removal to listview special remove 2011-07-29 10:10:25 -07:00
John Bender
57a1e9abf7 whitespace and log statement in listview 2011-07-29 10:10:25 -07:00
scottjehl
115f1710b1 remove entire list when parent page is hidden and next page is not a sub list. Note: the unbind of the "pagehide.remove" does not appear to be preventing the parent page from removal, and it regenerates its sublists when revisiting that parent, since it was removed. 2011-07-29 10:10:25 -07:00
scottjehl
a8c3859d84 using regular data method to access widget 2011-07-29 10:10:25 -07:00
scottjehl
dc054a10e7 implemented ajax dom caching option of the page plugin, which can be overridden by page options or data attribute. Includes unit test to support feature. 2011-07-29 10:10:25 -07:00
Samuel Padou
f097630a71 Fix issue of the select menu not closing on Chrome when we click out out of the menu or on the selected option 2011-07-29 17:39:53 +02:00
Ghislain Seguin
30e8ea8e09 Coding standards 2011-07-28 15:25:57 -07:00
Ghislain Seguin
29c408f32a Merge remote-tracking branch 'upstream/master' 2011-07-28 15:25:10 -07:00
Ghislain Seguin
703d31073e Merge pull request #2102 from kpozin/patch-6
Cache option indices in <li>s in custom select menus instead of doing linear search on every click
2011-07-28 15:21:52 -07:00
Faolan C-P
86824432e4 fix control group button selector in any .ui-bar instead of just .footer 2011-07-28 14:41:31 -04:00
Faolan C-P
21c8ce2989 add selector for links inside control groups in buttonMarkup 2011-07-28 14:35:47 -04:00
scottjehl
263193f490 Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable. 2011-07-27 18:42:16 -04:00
Ghislain Seguin
6ff9d9a06a Coding standards 2011-07-27 11:22:13 -07:00
Ghislain Seguin
d1e8083f15 Merge pull request #2152 from webmynd/master
Consider data-role when picking page transition in changePage
2011-07-27 10:04:39 -07:00