Commit graph

1592 commits

Author SHA1 Message Date
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
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
John Bender
c363864382 use scrolltop to store scroll position
scrolltop as a solution isn't that great but some browsers scroll to the top
of the page to where the element bearing the id matching the hash is located
*before* the hashchange event is fired meaning we don't have an opportunity
in the changepage event lifecycle to record the scrolling properly
2011-09-22 08:52:09 -07:00
Eddie Monge
5bfc08bba2 Issue 2499: Some php improvements 2011-09-21 23:19:37 -07:00
Kin Blas
80b0e99798 Fix for issue 1243 - Can't link to dynamically created data-role="page"
- Modified loadPage() so that if the data-url lookup for a given page fails, that it look for the page via id (if it is an embedded page URL). This allows us to find dynamically injected pages that are un-enhanced and missing their data-url attributes.
2011-09-21 15:46:15 -07:00
scottjehl
3e2683fe18 Merge remote branch 'origin/master' 2011-09-21 14:59:27 -04:00
scottjehl
38d7ad8848 binding these at mobileinit didn't help anything, and only hurt the ability to use them when jQM is dynamically appended. Idea credit to @martynsmith 2011-09-21 14:59:19 -04:00
Kin Blas
9b0bf5252d Removed deprecated "beforechangepage", "changepage", and "changepagefailed" event references in preparation for jQM 1.0 release.
Updated the unit tests to use "pagechange" event instead of "changepage".
2011-09-20 16:59:30 -07:00
Kin Blas
e7a33dbb45 Removed deprecated navigation related properties:
$.mobile.updateHash
	$.mobile.urlstack

in preparation for jQM 1.0.
2011-09-20 16:15:44 -07:00
Kin Blas
14bafc510d Removed support for the alpha signature of $.mobile.changePage() in preparation for jQM 1.0. Folks now how to use the signature that requires the toPage (url or element) as the first arg, and options object as the 2nd. 2011-09-20 15:40:52 -07:00
Kin Blas
dd458d1d4e Removing the deprecated $.fixedToolbars property in preparation for jQM 1.0. 2011-09-20 15:28:07 -07:00
Kin Blas
58573f90d9 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-20 14:47:09 -07:00
Kin Blas
c75a7ad654 Fix for issue 1666 - Deprecate $.mobile.pageLoading()
- Removed $.mobile.pageLoading().
- Updated tests/unit/init/ to call the new showPageLoadingMsg/hidePageLoadingMsg functions.
2011-09-20 14:45:26 -07:00
scottjehl
5fe78d5148 updated jQuery to 1.6.4 2011-09-20 17:42:44 -04:00
scottjehl
41d4640344 moved the support test for event capture, allowing vmouse to run standalone on jQuery Core. 2011-09-20 17:26:36 -04:00
Kin Blas
0fbea8f8e6 Fix for issue 2451:
Dialog not working if $.mobile.ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2451

related/dup bug 2202:

Dialog loads in new page with ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2202

- Modified the default click handler to check if the href is for an embedded page before bailing when ajaxEnabled = false. This allows us to navigate to internal/embedded pages/dialogs on the click versus waiting for the accidental hashchange that was the result of the browser's default handling of hash fragments.
2011-09-19 11:32:13 -07:00
gseguin
15667eee1b Fix for issue #2455
Removed .jqmHasData()
2011-09-16 09:17:01 -07:00
gseguin
a0ca22ae3d Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev 2011-09-16 09:12:25 -07:00
Kin Blas
320c12126f Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-15 17:00:27 -07:00
Kin Blas
78234976e7 Fix for issue 2050 - URL handling and PlayBook Webworks app
- Modified the url parser regexp so that we can  find the double slash that precedes the authority. This is necessary so we can reconstruct resource urls used on some devices like Rim's Playbook that use urls like:

location:/dir1/dir2/file.html

- Modified makeAbsoluteUrl() so that it uses the new doubleSlash property in the object returned from parseUrl() instead of assuming that it is ok to use a double slash.
2011-09-15 16:56:54 -07:00
gseguin
e4ff8fb539 Merge remote branch 'upstream/master' 2011-09-15 16:11:04 -07:00
gseguin
a908c5a6ef Fix for issue #1361
Mixin individual properties to options instead of calling .jqmData()
2011-09-15 16:10:10 -07:00
John Bender
ae2e7f0dc4 add 'widgetinit' event for users to enhance widgets and markup post 'widgetcreate' 2011-09-15 15:15:14 -07:00
John Bender
15cb663e52 suggestion from @jblas to save a bit of execution 2011-09-15 10:45:27 -07:00
John Bender
416b666ca8 prevent clicks on anything but the left mouse button, also adds the which value to the events when its undefined in the vmouse plugin 2011-09-15 10:16:40 -07:00
gseguin
518894fc69 Merge branch 'issue-1899' 2011-09-14 16:22:16 -07:00
gseguin
e6eaf7cacd Fix for #1899:
Re-styled collapsible and collapsible set so the content of the collapsible now is applied the ui-btn-up-%%theme%% class. This way the border will match the border of the header button. In the meantime in the ui-collapsible-content class we remove the background image and tweak the margin/padding to make everything look good.
Combined the expand/collapse handlers into a single one and made extensive use of .toggleClass()
2011-09-14 16:02:47 -07:00
John Bender
1a385db664 prevent known hash change handling from firing from popstate hashchange Fixes #2444 2011-09-14 15:37:31 -07:00
gseguin
87ca47f162 Fix for issue #1899
Refactored some css classes
Fixed bottom corners in set with only one collapsible
2011-09-14 11:05:53 -07:00