Commit graph

2517 commits

Author SHA1 Message Date
Kin Blas
963a84cb18 IE7 returns an empty string for regexp submatches while all other browsers return undefined. Modified the parseUrl() function to normalize all non-matches to an empty string and replaced all strict checks for undefined to strict checks for an empty string. 2011-06-10 15:31:09 -07:00
Kin Blas
a337e6d9a2 Fixed a test case that had a bad baseline result. 2011-06-10 10:17:54 -07:00
Kin Blas
244385b9f9 Merge branch 'master' into path-fixes 2011-06-10 10:02:11 -07:00
Kin Blas
b7bcf93620 - We were missing a changepage notification in the case where we were transitioning to the same page.
- Added changepagefailed notification for the case where the load fails. Note we still need beforeloadpage/loadpage notifications.

- Misc fixes to stop the navigation unit tests from seemingly random failures. It seems that the hash resets in setup/teardown of the test modules sometimes interferes with the changePage() requests in the tests. Added code to the setup/teardown functions to wait for the reset to complete before moving on to the tests.
2011-06-10 10:00:25 -07:00
Todd Parker
a0a04da7b3 Merge pull request #1815 from gseguin/issue-1762
Issue 1762: Extra (useless) iteration on list view items. Closes #1762
2011-06-10 09:51:42 -07:00
Ghislain Seguin
4572200107 Coding standards 2011-06-10 09:40:41 -07:00
Ghislain Seguin
c9abc368d8 Issue #1762: Removed extra iteration on list items 2011-06-10 09:40:15 -07:00
Kin Blas
f605e100e4 More fixes to get the navigation tests green again.
- Switched lots of tests over to using pageSequence.
2011-06-09 20:44:10 -07:00
Scott Jehl
3ca8f35ca2 Merge pull request #1806 from frietsch/master
Fixed a bug that can result in totally blank pages.
2011-06-09 13:24:36 -07:00
scottjehl
e1ed42d8b9 removed height:100% on inner buttons. I think this was a carryover from the old listview markup, but in testing we found no regressions by removing this. Fixes #1507 2011-06-09 16:17:18 -04:00
frietsch
d99d096ab7 Bugfix: ":jqmData(ajax='false')" might also match forms, which have neither of "src" or "href". In that case, thisUrl is undefined, and the following replace results in an error. 2011-06-09 08:21:21 -07:00
Scott Jehl
daffc98bf8 Merge pull request #1795 from bestform/master
Scrollview: fixed binding of orientationchange event
2011-06-09 07:20:26 -07:00
Matthias Derer
506c1d974c Merge remote branch 'jquery/master' 2011-06-09 08:50:56 +02:00
Kin Blas
3d6bd402a2 - Changes to get the navigation_helpers.js unit tests green.
- Modified isExternal so that it returns true/false to help with unit tests.
2011-06-08 17:20:01 -07:00
scottjehl
5512c8af02 use prop instead of attr for enable/disable 2011-06-08 18:12:42 -04:00
Kin Blas
eb082c27e3 Merge branch 'master' into path-fixes
Fixed Conflicts:
	js/jquery.mobile.navigation.js
2011-06-08 15:10:16 -07:00
Kin Blas
8e1e77badf Get deep linking to internal pages working again. We can now also deep link to nested list sub-pages that are contained within internal pages. 2011-06-08 15:06:41 -07:00
scottjehl
93e7afd4b1 make sure nested collapsible sets don't toggle their parent collapsibles when expanded. Fixes #1387 2011-06-08 18:00:26 -04:00
Kin Blas
33b9ee8052 Changes to make sure the data-url are either an id, site relative path (for same domain), or absolute Url (for cross-domain Phone Gap). 2011-06-08 14:47:24 -07:00
scottjehl
f8957baec7 make sure options don't get text-indented. Fixes #1717 2011-06-08 16:37:42 -04:00
Matthias Derer
04e75b07cd fixed binding of orientationchange event (was on document, but only works on window). Moreover, it is now bound using 'bind' and not 'live' 2011-06-08 17:18:05 +02:00
Todd Parker
4497d138f2 Merge pull request #1782 from gseguin/nested-lists
Beefed up nested lists test
2011-06-08 07:39:34 -07:00
Kin Blas
a99728d178 - Added addSearchParams() utility function.
- Removed unused path functions: setOrigin(), makeAbsolute(), and isQuery().
- Modified loadPage() so that it uses addSearchParams() instead of naively appending it to the URL.
- Switched the global "click" handler back to using the link @href attribute and manually converting it to an absolute URL. This was necessary because it turns out that the href property on a link is dynamically calculated at the time of access based on the *CURRENT* base tag setting. This means the same link can return a different href value if the the base tag is different each time you access it.
2011-06-06 15:58:21 -07:00
Kin Blas
3a2a35f8f2 Merge pull request #1784 from gseguin/master
Whitespace change
2011-06-06 08:34:38 -07:00
Kin Blas
19f1a775b9 Missed a couple of places I should've used hrefNoHash when I converted documentBase to an urlObject. 2011-06-04 10:51:41 -07:00
Kin Blas
f9dd767528 Switched form handler over to processing absolute urls. 2011-06-04 01:22:16 -07:00
Kin Blas
ba502f0aff Changes to switch the global link click handler over to processing absolute urls. 2011-06-04 00:26:25 -07:00
Ghislain Seguin
9d3862c825 Whitespace change 2011-06-03 19:02:13 -07:00
Kin Blas
b148ee424a Added isSameDomain() Utility function. 2011-06-03 13:57:25 -07:00
Ghislain Seguin
6af27f9a7e Beefed up nested lists test 2011-06-03 11:06:44 -07:00
Kin Blas
c88f5fc251 Merge pull request #1781 from gseguin/nested-lists
Nested lists id generation
2011-06-03 10:58:43 -07:00
Ghislain Seguin
888a3d4faf Fixed nested lists tests following id generation change (8373105) 2011-06-03 10:55:04 -07:00
Ghislain Seguin
3ee2585cba Fix for issue #1617: Nested lists with same parent text resolve to the same sub-page. 2011-06-03 10:55:04 -07:00
Ghislain Seguin
14492002e2 Fixed test case for issue #1617 2011-06-03 10:55:04 -07:00
Kin Blas
9e696b8d26 Backing out commit for "fix height issue for transitioning page"
https://github.com/jquery/jquery-mobile/pull/1723
b2a534c217

It was causing a few issues including:

https://github.com/jquery/jquery-mobile/issues/1770
2011-06-03 09:29:41 -07:00
Kin Blas
fad61785fe Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-02 16:54:14 -07:00
Kin Blas
489fc19fb1 Unit test to catch issues like 1767.
- Test passing string as data option to changePage().
- Test passing object as data option to changePage().
2011-06-02 16:52:36 -07:00
Kin Blas
97ba431f92 Merge pull request #1771 from eddiemonge/makefile_deploy
Makefile: Remove log as the info is now in the files from the nightly/lat
2011-06-02 14:33:48 -07:00
Kin Blas
b31825a1d7 Fixed issue 1767 - loadPage/changePage broken in trunk (latest build)
- Not sure how/why I added that extra absUrl, but its gone now.
2011-06-02 10:41:55 -07:00
eddiemonge
757dda99d0 Makefile: Remove log as the info is now in the files from the nightly/latest build. Fix output name for the same 2011-06-02 09:49:21 -07:00
Kin Blas
a2182dafa9 - Added a getClosestBaseUrl() utility function for calculating the correct base URL to use for a given element.
- We should be using makeUrlAbsolute() instead of makePathAbsolute() when calculating the documentBase.
- Removed bogus code in pathname calculatino in makeUrlAbsolute().
- Reworked calculation of search in makeUrlAbsolute() to prevent an undefined in the case where rel and abs urls have no search.
2011-06-01 17:15:18 -07:00
Kin Blas
3ca5dd854a - Added URL parsing and relative to absolute path and url utility methods.
- Switched the base tag management code over to using new utilities.
2011-06-01 11:59:13 -07:00
Kin Blas
6a2deead0f Merge pull request #1724 from eddiemonge/dialogToCodeStandards
Dialog to code standards and refactor a bit
2011-05-31 14:48:05 -07:00
eddiemonge
244cda822a add white space for code standard 2011-05-31 14:44:31 -07:00
eddiemonge
0438418175 merge changes 2011-05-31 14:41:54 -07:00
Kin Blas
a5d3c05e4b Merge branch 'dialogToCodeStandards' of https://github.com/StevenBlack/jquery-mobile into StevenBlack
Fixed Conflicts:
	js/jquery.mobile.dialog.js
2011-05-31 14:14:05 -07:00
eddiemonge
d3df858eea missed an equal sign 2011-05-27 12:13:48 -07:00
Kin Blas
991db0de46 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-05-27 10:55:20 -07:00
Kin Blas
ef9d55f4b6 Hopefully the last set of fixes for issue 1712 - $.mobile.changePage broken in latest
- The test case calls changePage() with a hash ("#b"). In our normal processing of clicks/form submits we strip it before calling. The old code did a strip in changePage() just in case, so I added it back in to fix the last bug.
2011-05-27 10:53:19 -07:00
Scott Jehl
bb67018dd7 Merge pull request #1723 from eddiemonge/bug_1507
fix height issue for transitioning page
2011-05-27 07:21:02 -07:00