Commit graph

1624 commits

Author SHA1 Message Date
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
d64eaf0500 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-28 11:40:33 -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
gseguin
b0969d1bcf Merge branch 'issue-2527' 2011-09-28 11:03:18 -07:00
gseguin
b84a68edaa Missing semi-colon 2011-09-28 10:57:46 -07:00
gseguin
5a97fd7b05 Fix for #2527
Use ui-body-* instead of ui-btn-up-* for collapsible content
2011-09-28 10:57:24 -07:00
Todd Parker
ee35ca635f Merge pull request #2556 from Wilto/master
Assorted CSS adjustments. Fixes #1392, Fixes #2513. Thanks Wilto!
2011-09-28 10:54:17 -07:00
Kin Blas
ca9df1197a Fixes #2529 - Transition to the same page
- So it seems just allowing changePage() to process same toPage and fromPage is not enough. I modified the CSS3 keyframe

animation plugin so that it only removes the ui-page-active class from the fromPage if it is *NOT* the same as the toPage.

- I also re-ordered the in/out transition rules for forward/reverse transitions so that the user always views some sort of animation/motion.
2011-09-28 09:14:52 -07:00
John Bender
ac0288a5ba create getEncodedText helper and update custom select for use Fixes #2547 2011-09-27 15:19:35 -07:00
Mat Marquis
085a104005 Fixes #2538 — Button wasn’t getting the appropriate “has-count” class. 2011-09-27 16:47:11 -04:00
scottjehl
9b86fddf89 disabled touch overflow scrolling by default. overridable through $.mobile.touchOverflowEnabled. 2011-09-27 12:37:10 -04:00
scottjehl
47480d69f9 when touch overflow scrolling is supported and enabled, user scaling can create serious usability issues where it's difficult to get zoomed back out. This disables user scaling when that overflow scrolling is enabled (currently only projected for ios5 support) 2011-09-27 12:36:24 -04:00
Kin Blas
a975878fb4 Disabled the workaround for issue 785 (jQM text input forces use of iOS auto-correction) on iOS 5 devices since it appears to be fixed. This is still a problem on iOS 4.x and earlier.
- We don't have a specific test for iOS 5 so we use $.support.touchOverflow as an iOS 5 and later indicator. Yes, I feel dirty.
2011-09-26 11:39:30 -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
gseguin
5bd72c7b96 Merge branch 'collapsible-redesign' 2011-09-24 22:12:22 -07:00
gseguin
276f27fbfa Fixed missing top corner on collapsible set with only one collapsible 2011-09-24 21:58:04 -07:00
gseguin
3ecbf8e383 Simplified code. Don't add data-* attr if not set by user 2011-09-24 21:41:20 -07:00
gseguin
bdaa477f68 Fix for #1899
Added data-content-theme to style the content of the collapsible
data-theme and data-content-theme inherit collapsible-set's
2011-09-24 17:22:55 -07:00
scottjehl
e81e3b19c0 fixed positioning of selects in touch overflow scroll mode. Fixes #2415 2011-09-24 01:00:42 -04: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
aa679a9b0f add inputs without a type to the text input list Fixes #2205 2011-09-23 20:44:48 -07:00
John Bender
3d88760019 whitespace in mobile forms textinput 2011-09-23 20:43:56 -07:00
John Bender
f029230e3a handle all dialog closing cases 2011-09-23 16:32:56 -07:00
John Bender
eca88ea818 quick rename to addDependents 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
scottjehl
b2d023732a Fixes #2490 where IE (and WP7) were not properly degrading form inputs via the degradeinputs plugin (and search inputs were not being styled as such) 2011-09-23 19:17:22 -04: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
ecc1361f7f For the sake of jQuery’s serialize, submit inputs’ values are added to the form as a hidden input—this ensures it will only happen once, and that this logic only applies to submit inputs with a name attribute. 2011-09-23 18:10:03 -04: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
Kin Blas
40570e294d Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-23 14:23:55 -07:00
Kin Blas
4f066b7e07 Fix for issue 2503 - User can't specify own error handling logic
- Added the following notifications to $.mobile.loadPage():

	- pagebeforeload
		- Triggered just before loadPage() attempts to dynamically load an external page.
		- Developers can prevent the default loading behavior by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object passed within the data object (2nd arg to the event callback).

	- pageload
		- Triggered after an external page has been loaded and inserted into the document.

	- pageloadfailed
		- Triggered when the load of an external page fails.
		- Developers can prevent the default behavior (error dialog display) by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object (2nd arg to the event callback).
2011-09-23 14:12:40 -07:00
toddparker
eaf5822c65 Restored button inline styling by defining inline as an option in the button markup plugin. Fixes #2496
The recent jqmData changes exposed this issue. Default for this option
is false.
2011-09-23 15:28:24 -04:00
scottjehl
be5136198e when a form is submitting via post to a url that already has a page represented in the DOM, replace the current page with the response page of the same url (post params are not passed via q string, so the URLs are identical). 2011-09-23 09:28:43 -04:00
scottjehl
1badd4aa8e enable touch overflow scrolling by default where supported 2011-09-22 21:31:03 -04:00
Kin Blas
4fa6ccdc0d Fix for issue 2315 - Flip toggle switch with change event bound, triggers multiple times
- Modified refresh() so that it checks to see if the value actually changed before firing off the "change" event.
2011-09-22 16:23:43 -07:00
gseguin
114cee84fe Merge remote branch 'upstream/master' 2011-10-05 15:14:39 -07:00
gseguin
27b51c47e9 Fixed $.jqmData() behavior to match $.fn.jqmData() 2011-10-05 15:12:11 -07:00
John Bender
e5e269394e remove empty else in nav 2011-09-22 14:40:59 -07:00
Ghislain Seguin
2f8d1902a2 Merge pull request #2500 from eddiemonge/issue_2499
Issue 2499: Some php improvements
2011-09-22 10:43:03 -07:00
gseguin
fb06381176 Set content-theme to collapsible in a set only if it's not already set 2011-09-22 10:28:56 -07:00
gseguin
46e6c6b320 fixed data-content-theme in collapsible-set for collapsible expanded by default 2011-09-22 09:49:02 -07:00
John Bender
2086529728 remove extra local var storage 2011-09-22 08:53:53 -07:00
John Bender
f1d63f4f75 simplify calls to bind by wrapping this as a jquery object 2011-09-22 08:52:45 -07:00
John Bender
9d2b39dca6 whitespace in mobile init 2011-09-22 08:52:45 -07:00
John Bender
9182306ccf refactor for clarity and simplicity 2011-09-22 08:52:45 -07:00
John Bender
27b228803a change scroll recording to handle different scroll elements between page changes 2011-09-22 08:52:45 -07:00
John Bender
2f12ff249a refactor setLastScroll to speed it up a tad 2011-09-22 08:52:09 -07:00
John Bender
3e143c8f66 rename getLastScroll and its variables 2011-09-22 08:52:09 -07:00