Commit graph

1577 commits

Author SHA1 Message Date
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
Kin Blas
56a22727ab Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-13 00:23:33 -07:00
Kin Blas
1a92be0240 Fix for issue 2406 - Navigation from one page back to multi-page template
- Make sure that our hashchange resolves non-path hashes against the documentBase. This prevents the resulting changePath() call from incorrectly resolving against the URL for the current active (external) page.

- Fixed a problem in the push-state code. A hashchange event is *NOT* fired when navigating back (window.history.back()) from an external page to an internal page. This makes sense when you think about it since hashchange is only ever fired when the hash of the current document url changes, not when the document url itself changes. The fix was to make sure that the pushstate hashchange callback always sets a state object, even on embedded page URLs. This allows the hashchange callback to be triggered from within onPopState().
2011-09-13 00:23:03 -07:00
John Bender
f1fef48239 add open and close as noop for people who might be looping over their selects and to self document the methods for extension 2011-09-12 16:53:56 -07:00
John Bender
c426aefd76 add data attribute tag for pages loaded via ajax Fixes #2432 2011-09-12 14:06:47 -07:00
John Bender
fbd113bad4 whitespace in listview and core nav 2011-09-12 13:58:24 -07:00
John Bender
ee6027a196 prefer defined theme from prototype or data options Fixes #2423 2011-09-12 09:08:48 -07:00
John Bender
59fc26d25f fix refresh bug for new options of the same number as before 2011-09-09 17:27:26 -07:00
Ghislain Seguin
2c55c93464 Merge pull request #2419 from zachleat/master
fieldcontain comment was copy pasted on links, nojs plugins.
2011-09-09 14:16:01 -07:00
zachleat
92151822b8 Incorrect comment text on the headers of two plugins. 2011-09-09 16:07:31 -05:00
scottjehl
2dadb4dbc4 Merge remote branch 'origin/master' 2011-09-09 12:28:17 -04:00
scottjehl
2369e2fa32 improved qualifications so that iOS5 gets the old-style fixed headers and footers when touchOverflow is disabled (which is the default). 2011-09-09 12:27:59 -04:00
John Bender
729757b465 create selectOptions method so the values stay current across dom changes Fixes #2410 2011-09-09 09:00:46 -07:00
gseguin
6f5a7d1266 Fix for issue #2404
Collapsible are collapsed by default
2011-09-08 13:34:58 -04:00
scottjehl
f49e69ef84 disabled iOS5 improvements by default. Can be enabled by binding to mobileinit and setting $.mobile.touchOverflowEnabled = true; 2011-09-08 13:26:33 -04:00
scottjehl
b645781f4d implemented native overflow scrolling based on support for -[prefix]-overflow-scrolling: touch. True fixed headers and footers come supported as well. 2011-09-08 12:38:50 -04:00