John Bender
57079e1d6b
add the ability to disable native orientation change support Fixes #793
...
the frequency of the triggered event in certain android releases ( 2.1, 2.2) appears to be dependent on a host of things other than an actual orientation change, eg alerts, zoom, and scrolling. This provides a way for the user to disable it in favor for using throttled resize while still making use of the window.orientation where its available for reliability
2011-10-04 11:54:26 -07:00
John Bender
ac0288a5ba
create getEncodedText helper and update custom select for use Fixes #2547
2011-09-27 15:19:35 -07:00
John Bender
eca88ea818
quick rename to addDependents
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
gseguin
27b51c47e9
Fixed $.jqmData() behavior to match $.fn.jqmData()
2011-10-05 15:12:11 -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
scottjehl
003505a4b9
changed minscroll to 250, better organization of lastscroll
2011-09-06 12:56:46 -04:00
John Bender
8a994d3dfa
add config option for pushstate
2011-08-25 11:42:32 -07:00
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