Commit graph

74 commits

Author SHA1 Message Date
scottjehl
df3fbca3f4 implemented the autoInitializePage global config option, so that auto-initialization may be disabled in favor of manually initializing the page later on. Still needs a unit test. 2011-07-24 19:27:21 -04:00
scottjehl
3dd495588b removed the nonHistorySelectors option, which was no longer in use after the nav refactor. 2011-07-15 11:50:26 -04:00
Kin Blas
2b51355656 Switch back to processing link clicks on the "click" event. It really is the only reliable way across all the devices we support.
Also, remove all references to useFastClick.
2011-06-29 17:38:00 -07:00
Rick Waldron
ab751c8bdc jQuery core style guide conformance: jquery.mobile.core.js 2011-06-28 20:17:45 -04:00
John Bender
1bf84177e0 whitespace correction in core 2011-06-26 12:10:11 -07:00
John Bender
b321d5f5f0 removed old nsNormalize camelcase regex 2011-06-26 12:10:11 -07:00
John Bender
601b4a8481 core whitespace fixes 2011-06-26 12:10:10 -07:00
scottjehl
45a71ac499 Added global config option "useFastClick", so that the changes we made for automated ajax handling since A4 can be disabled if needed, for whatever reason. When handling clicks and taps automatically with Ajax, this option will use jQuery Mobile's <code>vclick</code> event, enabling page changes to happen slightly sooner on devices that support touch events, and keeping the address bar hidden during page transtions. When disabled, the automatied Ajax handling will use an ordinary <code>click</code> event instead. This option has no effect on non-touch devices, but when enabled, it may interfere with jQuery plugins that bind to click events rather than vclick events. Fixes #1857 2011-06-20 11:35:09 -04:00
scottjehl
a09c53eb71 improved the address bar hiding logic to support Android as well by determining up-front which hiding number should be used. Fixes #1673. Fixes #1322. Fixes #1786. 2011-06-19 13:53:27 -04:00
scottjehl
fcbfc2f380 added minScrollBack feature to core options. This is the minimum scroll distance that will be jumped-to when returning to a page. By default, the distance is screen.height /2. If you really needed to disable scroll memory altogether, this could be set to Infinity. Note that disabling scroll memory altogether is almost never a good idea for usability, but the option is there. 2011-06-17 19:19:47 -04:00
scottjehl
8929ac33b9 Removed the ajaxLinksEnabled and ajaxFormsEnabled settings. These were deprecated in a4 and scheduled for removal. Automated link and form ajax handling can still be globally disabled via the ajaxEnabled option. 2011-05-24 16:08:30 -04:00
Kin Blas
368d3e55b4 Merge branch 'master' into navigation 2011-05-23 17:00:32 -07:00
John Bender
fe7ba3f6c6 jquery style compliance for nsNormalize 2011-05-20 12:32:08 -07:00
Kin Blas
3c792c58f0 Merge branch 'master' into navigation
Fixed Conflicts:
	js/jquery.mobile.init.js
	js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
John Bender
4c299a600b moved nsNormalize from replace to jquery camelCase function 2011-05-20 09:20:15 -07:00
John Bender
ad6279dd8a small optimization to prevent unnecessary recompilation of normalization regex 2011-05-20 01:09:39 -07:00
John Bender
3520e77dc4 comment for clarity on function purpose 2011-05-20 00:48:41 -07:00
John Bender
118599748b comment whitespace 2011-05-20 00:43:53 -07:00
John Bender
7eb1085764 data attribute namespace normalization to comply with spec and jquery 1.6 changes 2011-05-20 00:31:27 -07:00
John Bender
6487eb684f spaces to tabs in core 2011-05-19 15:36:22 -07:00
scottjehl
adf3808e84 Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps. 2011-05-17 18:03:54 -04:00
scottjehl
04cb9c1850 followup to previous change, this time for dynamically appended meta viewport tags. 2011-05-17 17:30:13 -04:00
Kin Blas
b96310eedf - Externalize some of the nested functions in changePage().
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a, e775f5e8, e597ccb3, 084bbbd8.
2011-05-16 16:02:26 -07:00
John Bender
74d13ee034 whitespace in mobile core 2011-03-31 23:39:09 -07:00
scottjehl
4a45d8d96b Added pageLoadErrorMessage option. Defaults to "Error Loading Page". Documentation included. Fixes #1258 and Fixes #363 2011-03-27 11:45:03 -04:00
scottjehl
665e87dd5b make sure an undefined prop stays undefined 2011-03-26 17:48:21 -04:00
scottjehl
8880ceb431 jqm coding style 2011-03-26 14:17:19 -04:00
scottjehl
e8cee23744 major simplification of jqmData method, while adding new methods for jqmRemoveData, and also their $-namepaced utility methods, including $.jqmHasData. Commit includes 20 new unit tests included to test compatibility with jQuery core's data methods, and docs are updated as well. 2011-03-26 14:14:02 -04:00
scottjehl
7503f62a10 changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
jeresig
29c0471cca Make sure that the :jqdata() selector also works for filtered items. 2011-03-22 14:35:11 -04:00
John Bender
018609fa32 removed mass of duplication from core of functionality that was moved to init, fixed init tests 2011-03-22 00:26:24 -07:00
Kin Blas
882c27c03f Tweaked the jqdata selector regexp so that it wasn't so greedy. This will allow for multiple jqdata() and other pseudo selectors that use parens withinthe same selector string. 2011-03-18 08:42:24 -07:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
John Resig
42c1271963 Adding in a new :jqdata() selector for filtering data- attributes within the proper jQuery Mobile namespace. 2011-03-15 15:08:02 -04:00
scottjehl
f69c98caf0 gradeA adjusted to IE7 and up rather than 6 and up ( this still includes Windows Phone 7). Unit test adjusted to match 2011-03-14 00:20:26 -04:00
scottjehl
d3a170db09 moved the IE test to support.js, added a workaround to the listview refresh method to prevent default on mousedown, which makes the tap highlight color look right in Windows Phone 7. Without this workaround, it still works fine, but the entire listview is highlighted when an LI is clicked. 2011-03-14 00:20:25 -04:00
scottjehl
8cb9923055 gradeA test was missed in the update. back in now, with IE 6+ enabled. 2011-03-14 00:20:24 -04:00
scottjehl
aa31e01d63 updated to latest core js, with deprecation note 2011-03-14 00:20:24 -04:00
scottjehl
5b1f586cdb added meta back. This is now deprecated for A4 in favor of putting the viewport meta directly in the markup. 2011-03-14 00:20:24 -04:00
scottjehl
dcbe844f5c brought back meta definition. This is now deprecated in A4 2011-03-14 00:20:23 -04:00
scottjehl
dfe7cf6593 Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags. 2011-03-14 00:20:23 -04:00
scottjehl
1370d5a48e add IE version check to gradeA qualifier. 2011-03-14 00:20:22 -04:00
scottjehl
ea60207c1b changed custom data method to $.fn.mobileData() and updated plugins that use it. 2011-03-09 23:27:21 -05:00
scottjehl
19f5fd7cae changed the default namespace to "" and updated the docs/demos as such 2011-03-09 22:36:14 -05:00
scottjehl
77ac0f009a a few more non-namespaced attrs to bring over 2011-03-09 21:03:40 -05:00
scottjehl
bc0f1e02f3 better var names 2011-03-09 21:03:40 -05:00
scottjehl
9e91fa6752 updated docs with jq namespace, found some more stragglers 2011-03-09 21:03:40 -05:00
scottjehl
cee4c617ba first pass at extending data() to either return a) if no arguments, return non-namespaced versions of any namespaced properties in the data hash, or b) if getting a data property, try getting the namespaced version if the first is undefined. If it's defined, return that instead 2011-03-09 20:49:43 -05:00
scottjehl
ce34ece257 namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS 2011-03-09 20:47:44 -05:00
John Bender
a4a8d859ca small refactor of core to unify call to extend 2011-03-04 22:25:33 -08:00