Commit graph

350 commits

Author SHA1 Message Date
John Bender
ac6eb10913 alpha order deps 2012-01-13 17:24:51 +07:00
John Bender
7dc692dc3a add transition dep to navigation 2012-01-13 17:24:51 +07:00
Ghislain Seguin
c6e49f7b07 Discovered r.js' pragmas use them instead of the hacky solution provided by amd-stripper.js 2012-01-13 17:24:49 +07:00
Ghislain Seguin
f3e3121166 Specified more dependencies 2012-01-13 17:23:19 +07:00
Ghislain Seguin
c9cdf7f984 Fixed deps 2012-01-13 17:21:26 +07:00
Ghislain Seguin
46ea93cea1 Added dep on jquery.mobile.core 2012-01-13 17:20:44 +07:00
Ghislain Seguin
1ca9fb6b01 AMDized 2012-01-13 17:20:23 +07:00
John Bender
15f1c6de66 wait to focus page header until after mobile rendering class is stripped Fixes #2965 2011-12-14 14:48:38 -08:00
Ghislain Seguin
3542c9c0b1 Merge pull request #3008 from eddiemonge/live-delegate
Change .live() to .delegate()
2011-11-17 15:13:29 -08:00
jblas@adobe.com
098eed9c3b Fix for #2826 - an error occurred with click event on svg element using "live" or "delegate"
- Modified findClosestLink() to check the ele.nodeName type before trying to access it.
2011-11-15 16:17:14 -08:00
John Bender
46f6c678eb simplify nested branches 2011-11-11 11:20:30 -08:00
John Bender
1f20d7c002 Merge branch 'issue_2821' of https://github.com/pbosakov/jquery-mobile into pbosakov-issue_2821 2011-11-11 09:58:16 -08:00
Eddie Monge
c367c832e2 Change .live() to .delegate() 2011-11-09 16:01:37 -08:00
Eddie Monge
5535e24c46 Update to add license to root, update individual files to not have license, add license to built and testing files 2011-11-08 15:43:36 -08:00
John Bender
94c2651244 Merge pull request #2959 from garann/158a65c1fd7f34afb6f157921a1604f6e3159a29
Store title of initial page
2011-11-08 13:38:29 -08:00
Garann Means
158a65c1fd Store title of initial page so it will appear correctly if reloaded via link instead of back button 2011-11-07 14:23:27 -06:00
Mat Marquis
63573bce5e Merge pull request #2934 from garann/master
Issue #1447 - unescape entities in page titles
2011-11-04 15:04:26 -07:00
Garann Means
6699dab7d1 Corrected logic for locating entities in titles 2011-11-04 15:08:10 -05:00
jblas@adobe.com
97e3f8a800 Fix for issue #2520 - No longer able to remove / expire pages reliably
- Modified loadPage() so that if we are attempting to load the first page of the application document, that we first check to make sure it is in the DOM before returning our cached copy. If it is not in the DOM, we let it fall through to the ajax loading code so that it gets recreated. This is necessary since some developers are agressively pruning pages, including embedded ones, for various reasons.
2011-11-04 10:58:44 -07:00
Garann Means
d7d52544e7 Fix for #1447 - create element and read text from there to unescape entities in page title 2011-11-04 12:33:07 -05:00
Petko Bossakov
8387919d26 Issue 2821: prevented caling blur() on a body element, causes bug in IE8 2011-11-02 22:09:25 +02:00
Ghislain Seguin
f81888c4e1 Fix for #2865: when it's the first time we load the page, use the page title if there is one 2011-10-27 22:28:14 -07:00
Ghislain Seguin
5804e364c1 Revert "on page-reload, i believe, toPage.jqmData( "title" ) is null and the page-header-text is always used"
This reverts commit 3d0f10d186.
2011-10-27 15:28:22 -07:00
Maurice Gottlieb
3d0f10d186 on page-reload, i believe, toPage.jqmData( "title" ) is null and the page-header-text is always used 2011-10-28 00:00:00 +03:00
jblas@adobe.com
3e0928fcb9 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-10-26 11:36:31 -07:00
jblas@adobe.com
1405a9453f Add the XHR object to the data passed to loadpage and loadpagefailed callbacks. This was a low-hanging-fruit enhancement request for issue #2503 - User can't specify own error handling logic. 2011-10-26 11:34:27 -07:00
John Bender
28e860f121 Merge pull request #2840 from eddiemonge/min_license
Standardize licenses in files and match jQuery core min license in min fi
2011-10-26 10:55:47 -07:00
jblas@adobe.com
9a4eb1d833 Fix for issue #2835 - pagechangefailed not triggered when changing to non-existent internal page
- Modified loadPage() so that it bails if an embedded page is not found within the DOM.
2011-10-25 17:06:01 -07:00
Eddie Monge
f6e319ef8a Standardize licenses in files and match jQuery core min license in min files 2011-10-25 11:15:19 -07:00
gseguin
e897c66c6f Fix for issue #2225 2011-10-21 15:22:36 -07:00
John Bender
8f5889a707 add linkBindingEnabled to mobile object for complex apps that want to handle all nav 2011-10-20 15:16:03 -07:00
jblas@adobe.com
ab8deade90 Fixed #2699 - Dialog reverse transition
- Moved the settings.transition calculation code before the code that pushes a new history item on the stack. This ensures that the proper transition is stored with the history item.
2011-10-14 09:30:26 -07:00
John Bender
f0db137ed9 render prefetched pages according to their data-rel attr fixes #2335 2011-10-11 16:19:18 -07:00
Kin Blas
c297f9675b Fix for issue #2644 - Navigating to root "/" does not generate clean URL if root page has id="*"
- Fixed a bug in the hashchange handler for the pushstate/replacestate plugin that was incorrectly resolving hashchanges for ids against the current location.href, which could be a different document. We now resolve id hashes against the document URL.

- Modified changePage() so that it sets the settings.dataUrl option to the documentUrl, when navigating to the first-page of the application document. This prevents any id on the first-page from being added to the location hash. This means that URLs that used to be produced like this:

	http://site.com/apps/#first-page-id

will now display as:

		http://site.com/apps/

Developers that wish to get the old behavior back can register a pagebeforechange handler and do something like this:

	$( document ).bind( "pagebeforechange", function( e, data ) {
		var toPage = data.toPage;
		if ( typeof toPage === "object" && !data.options.dataUrl && toPage[ 0 ] === $.mobile.firstPage[ 0 ] && toPage[ 0 ].id ) {
			data.options.dataUrl = "#" + toPage[ 0 ].id;
		}
	});

The handler above will make sure that any page changes to the first-page will always display as:

	http://site.com/apps/#first-page-id
2011-10-10 11:04:04 -07:00
John Bender
71b0eb0552 move $.fn.text invocation to $.fn.getEncodedTest where the content is being re-added to the dom for xss safety Fixes #2550 2011-10-04 18:25:54 -07:00
Kin Blas
8a25599b82 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-30 12:43:30 -07:00
Kin Blas
98eda9a0f4 Fixes #2582 - Refreshing a page with #&ui-state=dialog causes page duplication
- Modified loadPage() to call isFirstPage() with fileUrl instead of absUrl. Since fileUrl is the same as absUrl, but with the dialogHashKey stripped off, it will allow us to match against the url for the first-page.
2011-09-30 12:38:16 -07:00
Kin Blas
5a76ae7ed2 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-30 09:19:15 -07:00
Kin Blas
bafc18723b Fixes #2574 - namespace pollution on 'search' variable (1.0rc1)
- There was a typo in the var declaration in makeUrlAbsolute(). Changed the ';' in the middle of the declaration to ','.
2011-09-30 09:17:05 -07:00
Kin Blas
47812171f1 Fixes #2570 - Refreshing a page with #&ui-state=dialog causes syntax error
- This was a regression from my fix to loadPage() for detecting un-enhanced pages by @id as a fallback. In this particular case dataUrl was being used to create an id selector, and of course if the dataUrl is an empty string we end up using "#" as the selector. The fix is to simply check for a non-empty dataUrl.
2011-09-29 15:16:21 -07:00
Kin Blas
972500bbbc Re-merge pull request #1550 from MaxThrax/master.
- Not sure what happened when I originally merged this back on 05/02/2011, but here it is again!
2011-09-28 22:08:30 -07:00
Kin Blas
34fb7b2dc1 Fixes #2537 - Add new pageremove event
- Modified the pagehide callback in $.mobile._bindPageRemove() so that it fires off a "pageremove" event. Callbacks can prevent the removal of the page by simply calling preventDefault() on the pagremove event object that is passed to their callback.
2011-09-28 11:37:46 -07:00
Kin Blas
6cd1e1b141 Fix for issue 2529 - Transition to the same page
- Added a new allowSamePageTransition option to the changePage() method default settings.

By default, we prevent changePage() requests when the fromPage and toPage are the same element, but folks that generate content manually/dynamically and reuse pages want to be able to transition to the same page. To allow
this, they will need to change the default value of allowSamePageTransition to true, *OR*, pass it in as an option when they manually call changePage().

It should be noted that our default transition animations assume that the formPage and toPage are different elements, so they may behave unexpectedly. It is up to the developer that turns on the allowSamePageTransitiona option
to either turn off transition animations, or make sure that an appropriate animation transition is used.

	// To toggle the default behavior for all changePage() calls,
	// set the default value of allowSamePageTransition to whatever
	// you want it to be. The default is false.

	$.mobile.changePage.defaults.allowSamePageTransition = true;

	// To specify the behavior when manually calling changePage(),
	// pass it as an option. If not specified, the default value
	// specified by $.mobile.changepage.defaults.allowSamePageTransition
	// is used.

	$.mobile.changePage( "#reused-page", { allowSamePageTransition: true } );
2011-09-26 10:23:47 -07:00
scottjehl
23e79fb1db better fix for the ios5 height issue with the bottom of the page. 2011-09-24 00:55:50 -04:00
scottjehl
52e1022697 adjusted the fallback heights. addresses the ios5 fixed footer alignment described in issue #2415 2011-09-24 00:33:44 -04:00
John Bender
f029230e3a handle all dialog closing cases 2011-09-23 16:32:56 -07:00
John Bender
e741bc2da6 force close logic of custom select to run when close is clicked, centralize the binding for pagehide.remove 2011-09-23 16:32:56 -07:00
John Bender
b837a49b32 add dependent tracking functions for jquery mobile objects 2011-09-23 16:32:56 -07:00
Scott Jehl
adc1ecc2e6 Merge pull request #2519 from Wilto/master
Various and Sundry Fixes
2011-09-23 15:20:19 -07:00
Mat Marquis
dec502d2c8 Prevents “undefined is null or not an object” error in IE, where .scrollTop() was being called before the body was ready. 2011-09-23 18:05:12 -04:00