Commit graph

1447 commits

Author SHA1 Message Date
James Brady
9cf3a60dee Consider data-role when picking page transition.
Re-use existing "isDialog" variable in changePage,
instead of just looking at settings.role.
2011-07-27 12:24:41 +01:00
Scott Jehl
705ed4f308 typo in comment 2011-07-26 17:04:36 -03:00
scottjehl
e07c40e3d0 exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector" 2011-07-26 14:22:08 -04:00
scottjehl
79d3aa6f04 brought back degradeInputs page option, this time as a decoupled page plugin file. Fixes #2123 2011-07-26 13:49:10 -04: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
fdb77bfa52 changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions 2011-07-22 09:05:55 -04:00
scottjehl
1a828594f5 default for loadPage should be to not show the loading message, since its default use case is to fetch a page that is not yet active. However, changePage should cause it to show because loadPage is being called during a page change. 2011-07-21 08:04:12 -04:00
Scott Jehl
4d66aa6397 added input types url and tel to auto-init. 2011-07-20 15:29:08 -07:00
Scott Jehl
214e2e0c1a Merge pull request #2118 from commadelimited/master
Fixes #2117. Add textInput styles to email type input field
2011-07-20 15:27:42 -07:00
jacob4u2
9ff4d4cfd3 fix for #2119; updated to 2011-07-20 16:03:10 -05:00
Andy Matthews
0123608748 Edited js/jquery.mobile.forms.textinput.js via GitHub 2011-07-20 12:52:19 -07:00
scottjehl
a3afffdbbd restored autocorrect/complete disabling, as it was implemented in the page plugin already. 2011-07-20 12:59:20 -04:00
scottjehl
79cef2c01f restored default theming for headers and footers 2011-07-20 12:58:38 -04:00
scottjehl
5dc3555373 restored dialog theming, which overrides default page theming, but not custom page theming. 2011-07-20 12:40:46 -04:00
scottjehl
3da4bd32a8 whitespace 2011-07-20 12:37:54 -04:00
scottjehl
64e6ef0e72 bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance". 2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9 This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.

- Unit tests have been added and adjusted to support some internal changes involved in this commit.

- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.

- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.

- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
Konstantin Pozin
8fb64a5ef9 Added cached <option> element indices to corresponding <li>s in custom select menus.
Removed redundant .eq() call.
2011-07-18 09:27:39 -07:00
scottjehl
03f32728c6 removed a console.log 2011-07-17 16:22:13 -04:00
scottjehl
259815d480 Make data-role=page elements optional. This change makes the framework more lenient with markup, and will ease integration with existing sites, as well as mashups with external content. Unit tests included. Fixes #2096 2011-07-17 14:52:49 -04:00
John Bender
2e2f318562 whitespace and missing semi in select 2011-07-15 15:22:56 -07:00
scottjehl
f84ceb12ed Merge remote branch 'origin/master' 2011-07-15 16:30:03 -04:00
John Bender
ca173441d0 small refactor the the base url change for readability 2011-07-15 10:47:06 -07:00
scottjehl
a5d0a294e9 Implemented data-prefetch attribute for anchor elements. Presence of this attribute on an anchor will cause the referenced page to be preloaded when the parent page of that anchor is shown. Fixes #1819. 2011-07-15 13:16:31 -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
scottjehl
b0552d79de removed some old alpha comments. Versioning covers this sort of thing. 2011-07-15 11:47:32 -04:00
scottjehl
6da7e4a1dc Made loading message configurable at runtime. Fixes #2044. Fixes #1974. Fixes #1947. 2011-07-14 22:46:06 -04:00
John Bender
d827be3bf2 relative url change per Kin Blas's last pre-vacation request 2011-07-13 16:04:24 -07:00
Ghislain Seguin
3062d385b8 Fix for issue #1526 2011-07-12 23:32:10 -07:00
scottjehl
ada46734ec abstracted out some of the page hide behavior to fix issues with the close button not returning focus to the button after closing. Also fixes an issue where a full page custom menu would open as a misplaced small custom menu the second time it opens (if the menu was closed via the custom close button). Fixes #1618. Fixes #1692. Fixes #1750. 2011-07-10 21:56:58 -04:00
Scott Jehl
7b1966c850 Merge pull request #2015 from mlitwin/bug_1992
Fixes #1992; Swipe threshold constants are configurable
2011-07-10 15:20:15 -07:00
scottjehl
e567742c90 fixed up logic and code style for the _removeCorners "which" argument. Thx for the logic suggestion, @eugenb1. Fixes #1996. 2011-07-10 18:07:12 -04:00
scottjehl
033ce4ab96 Merge branch 'fix_issue_1851' of https://github.com/tigbro/jquery-mobile into tigbro-fix_issue_1851
Conflicts:
	js/jquery.mobile.forms.checkboxradio.js
2011-07-10 17:17:51 -04:00
scottjehl
3deaa97c3a removed the globalpagecreate event trigger that came with the previous pull request, as it was never necessary. 2011-07-10 16:12:05 -04:00
scottjehl
f13207505f Merge branch 'master' of https://github.com/eugenb1/jquery-mobile into eugenb1-master 2011-07-10 16:09:00 -04:00
Ryan Neufeld
92fcbe1672 Fix for Bug #1931 - Collapsible Set - Visual Bug
collapsable selector was using :first so set was only ever one element.
changed find to children
2011-07-07 13:20:10 -07:00
John Bender
b761496ece moved typeof check to jQuery.type() 2011-07-07 09:22:24 -07:00
John Bender
bf9c071900 whitespace in navigation 2011-07-07 09:19:16 -07:00
Eugen
d581accfdb #2018 - forms.select now uses $.mobile.defaultDialogTransition 2011-07-07 09:52:02 +02:00
Eugen
4102df9923 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-07-07 09:20:55 +02:00
Konstantin Pozin
807089b04a Fix for #1271 - iconshadow 2011-07-06 13:22:53 -07:00
Ghislain Seguin
21557ff5c5 Merge pull request #1993 from gseguin/issue-1990
Proposed fix for issue #1990
2011-07-06 10:44:22 -07:00
Eugen
da2b8ba21a Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-07-05 09:15:21 +02:00
mlitwin
1ef7313e39 Bug 1992; Swipe threshold constants are configurable 2011-07-02 08:23:52 -07:00
scottjehl
8b220a7be4 updated jquery version to 1.6.2 2011-07-01 14:39:21 -04:00
Ghislain Seguin
2deeee14d7 More elegant fix for #1990
Re-use $.mobile.allowCrossDomainPages & call deferred.reject to notify caller of failure
2011-06-30 13:40:06 -07:00
Eugen
1068f3e968 globalpagecreate-Event 2011-06-30 13:24:24 +02:00
Ghislain Seguin
8117f12ad5 Coding standards 2011-06-29 21:03:12 -07:00
Ghislain Seguin
b02e19891a Replace $.noop by function that throws to not fail silently 2011-06-29 21:02:53 -07:00
Ghislain Seguin
5fe310600f Fix for #1990: Introducing $.mobile.ajaxCrossDomainEnabled defaults to false 2011-06-29 20:00:12 -07: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
John Bender
0774d6bfa0 move isOpen = true to the page show for dialog selects and to the bottom of the custom select logic branch to prevent timing issues 2011-06-29 10:43:30 -07:00
Rick Waldron
658a420c3b Fixes regression: jquery.mobile.page.js - revert var decl 2011-06-29 13:24:55 -04:00
Kin Blas
fb4b2ade25 Merge pull request #1984 from rwldrn/jquery.mobile.page.js-2
Fixes regression: jquery.mobile.page.js
2011-06-29 10:16:57 -07:00
Rick Waldron
a98a0d951f Fixes regression: jquery.mobile.page.js 2011-06-29 13:08:04 -04:00
Kin Blas
554780f36c Merge pull request #1981 from rwldrn/jquery.mobile.widget.js
jQuery core style guide conformance: jquery.mobile.widget.js
2011-06-29 09:15:52 -07:00
Kin Blas
a68cdd9f33 Merge pull request #1959 from rwldrn/jquery.mobile.fixHeaderFooter.js
jQuery core style guide conformance: jquery.mobile.fixHeaderFooter.js
2011-06-29 09:14:51 -07:00
Ghislain Seguin
188dbcc1a5 Coding standards 2011-06-29 08:59:40 -07:00
Ghislain Seguin
92fa98a88a Merge pull request #1980 from rwldrn/jquery.mobile.vmouse.js
jQuery core style guide conformance: jquery.mobile.vmouse.js
2011-06-29 08:52:52 -07:00
Kin Blas
93e59a7f22 Merge pull request #1957 from rwldrn/jquery.mobile.event.js
jQuery core style guide conformance: jquery.mobile.event.js
2011-06-29 08:50:12 -07:00
Rick Waldron
19e36d2fff jQuery core style guide conformance: jquery.mobile.event.js - fix string concat & split 2011-06-29 11:46:50 -04:00
Ghislain Seguin
7206049d21 Merge pull request #1979 from rwldrn/jquery.mobile.transition.js
jQuery core style guide conformance: jquery.mobile.transition.js
2011-06-29 08:36:41 -07:00
Kin Blas
786d1bf328 Merge pull request #1978 from rwldrn/jquery.mobile.support.js
jQuery core style guide conformance: jquery.mobile.support.js
2011-06-29 08:23:53 -07:00
Rick Waldron
fcc874eb93 jQuery core style guide conformance: jquery.mobile.widget.js 2011-06-29 10:00:57 -04:00
Rick Waldron
c61c064d25 jQuery core style guide conformance: jquery.mobile.vmouse.js 2011-06-29 09:57:45 -04:00
Todd Parker
afe76dc340 Merge pull request #1958 from rwldrn/jquery.mobile.fieldContain.js
jQuery core style guide conformance: jquery.mobile.fieldContain.js
2011-06-29 06:56:09 -07:00
Rick Waldron
087c584ccd jQuery core style guide conformance: jquery.mobile.transition.js 2011-06-29 09:38:57 -04:00
Rick Waldron
ce57eed4f6 jQuery core style guide conformance: jquery.mobile.support.js 2011-06-29 09:36:41 -04:00
Ghislain Seguin
9d728f4d41 Merge pull request #1977 from rwldrn/jquery.mobile.page.js
jQuery core style guide conformance: jquery.mobile.page.js
2011-06-29 06:34:47 -07:00
Rick Waldron
dfea9e2b83 jQuery core style guide conformance: jquery.mobile.page.js 2011-06-29 09:27:58 -04:00
Ghislain Seguin
272ef99e1d Coding standards 2011-06-29 06:24:18 -07:00
Ghislain Seguin
a7074bc86f Merge pull request #1973 from rwldrn/jquery.mobile.listview.js-2
jQuery core style guide conformance: jquery.mobile.listview.js-2
2011-06-29 06:21:07 -07:00
Ghislain Seguin
233a57f3a4 Merge pull request #1966 from rwldrn/jquery.mobile.listview.filter.js
jQuery core style guide conformance: jquery.mobile.listview.filter.js
2011-06-29 06:19:35 -07:00
Rick Waldron
e42ab139b3 jQuery core style guide conformance: jquery.mobile.listview.js-2, revert 2011-06-29 09:19:19 -04:00
Rick Waldron
6b1d18b55e jQuery core style guide conformance: jquery.mobile.navbar.js-2 2011-06-29 09:06:18 -04:00
Rick Waldron
96ea959e44 jQuery core style guide conformance: jquery.mobile.listview.js-2 2011-06-29 09:03:49 -04:00
Rick Waldron
c96225796a jQuery core style guide conformance: jquery.mobile.listview.filter.js 2 2011-06-29 08:49:46 -04:00
Ghislain Seguin
453d9985cf Coding standards and linting 2011-06-28 23:15:12 -07:00
Ghislain Seguin
d0ec1ec452 Merge pull request #1660 from gseguin/issue-1470
Fix for #1470
2011-06-28 22:26:00 -07:00
Ghislain Seguin
595a2371f2 Coding standards 2011-06-28 22:17:41 -07:00
Ghislain Seguin
547a82c44c Merge remote-tracking branch 'upstream/master' 2011-06-28 22:14:40 -07:00
Ghislain Seguin
0b21f045c6 Merge pull request #1967 from rwldrn/jquery.mobile.navbar.js
jQuery core style guide conformance: jquery.mobile.navbar.js
2011-06-28 22:14:31 -07:00
Ghislain Seguin
f93e362075 Merge pull request #1965 from rwldrn/jquery.mobile.grid.js
jQuery core style guide conformance: jquery.mobile.grid.js
2011-06-28 22:13:22 -07:00
Ghislain Seguin
8a9010d5e6 Coding standards 2011-06-28 22:06:30 -07:00
Ghislain Seguin
8e93a318bf Fixed comment 2011-06-28 21:47:10 -07:00
Ghislain Seguin
f8c8e618bb Merge pull request #1964 from rwldrn/jquery.mobile.forms.textinput.js
jQuery core style guide conformance: jquery.mobile.forms.textinput.js
2011-06-28 21:39:26 -07:00
Ghislain Seguin
0f388ade64 Merge pull request #1963 from rwldrn/jquery.mobile.forms.slider.js
jQuery core style guide conformance: jquery.mobile.forms.slider.js
2011-06-28 21:33:15 -07:00
Ghislain Seguin
d53cb839da Merge pull request #1962 from rwldrn/jquery.mobile.forms.select.js
jQuery core style guide conformance: jquery.mobile.forms.select.js
2011-06-28 21:14:40 -07:00
Rick Waldron
05059f30d5 jQuery core style guide conformance: jquery.mobile.event.js 2011-06-28 23:48:20 -04:00
Rick Waldron
3c57cb8778 jQuery core style guide conformance: jquery.mobile.fieldContain.js 2011-06-28 23:48:03 -04:00
Rick Waldron
250d00cde3 jQuery core style guide conformance: jquery.mobile.fixHeaderFooter.js 2011-06-28 23:47:46 -04:00
Ghislain Seguin
80804c4818 Merge pull request #1961 from rwldrn/jquery.mobile.forms.checkboxradio.js
jQuery core style guide conformance: jquery.mobile.forms.checkboxradio.js
2011-06-28 19:39:09 -07:00
Rick Waldron
0750fc2e3b jQuery core style guide conformance: jquery.mobile.navbar.js 2011-06-28 21:38:41 -04:00
Rick Waldron
f5cc791297 jQuery core style guide conformance: jquery.mobile.listview.filter.js 2011-06-28 21:35:42 -04:00
Rick Waldron
5dbbf68d4e jQuery core style guide conformance: jquery.mobile.forms.slider.js 2011-06-28 21:27:07 -04:00
Rick Waldron
c66fcd2ccb jQuery core style guide conformance: jquery.mobile.grid.js 2011-06-28 21:25:13 -04:00
Rick Waldron
e44f553a64 jQuery core style guide conformance: jquery.mobile.forms.textinput.js 2011-06-28 21:20:52 -04:00
Rick Waldron
373c42d9ef jQuery core style guide conformance: jquery.mobile.forms.select.js 2011-06-28 20:54:30 -04:00
Ghislain Seguin
2a232a06e0 Merge pull request #1960 from rwldrn/jquery.mobile.forms.button.js
jQuery core style guide conformance: jquery.mobile.forms.button.js
2011-06-28 17:40:48 -07:00
Rick Waldron
74f05680b3 jQuery core style guide conformance: jquery.mobile.forms.checkboxradio.js 2011-06-28 20:35:40 -04:00
Ghislain Seguin
ab7eceb768 Merge pull request #1956 from rwldrn/jquery.mobile.dialog.js
jQuery core style guide conformance: jquery.mobile.dialog.js
2011-06-28 17:27:15 -07:00
Ghislain Seguin
0218d39449 Merge pull request #1955 from rwldrn/jquery.mobile.core.js
jQuery core style guide conformance: jquery.mobile.core.js
2011-06-28 17:25:20 -07:00
Rick Waldron
76b173dab2 jQuery core style guide conformance: jquery.mobile.fieldContain.js 2011-06-28 20:22:34 -04:00
Rick Waldron
ab751c8bdc jQuery core style guide conformance: jquery.mobile.core.js 2011-06-28 20:17:45 -04:00
Rick Waldron
92451a0287 jQuery core style guide conformance: jquery.mobile.forms.button.js 2011-06-28 20:15:43 -04:00
Rick Waldron
42f0b64262 jQuery core style guide conformance: jquery.mobile.event.js 2011-06-28 19:47:21 -04:00
Rick Waldron
5fe4bae160 jQuery core style guide conformance: jquery.mobile.dialog.js 2011-06-28 19:29:48 -04:00
Kin Blas
ddb06761b0 Merge pull request #1952 from rwldrn/jquery.mobile.collapsible.js
jQuery core style guide conformance: jquery.mobile.collapsible.js
2011-06-28 16:21:47 -07:00
Kin Blas
7efab0ed0d Merge pull request #1954 from rwldrn/jquery.mobile.media.js
jQuery core style guide conformance: jquery.mobile.media.js
2011-06-28 16:14:22 -07:00
Kin Blas
988045c65e Merge pull request #1953 from rwldrn/jquery.mobile.controlGroup.js
jQuery core style guide conformance: jquery.mobile.controlGroup.js
2011-06-28 16:09:23 -07:00
Rick Waldron
5b6a0570f5 jQuery core style guide conformance: jquery.mobile.collapsible.js 2011-06-28 19:02:33 -04:00
Rick Waldron
c351e9929a jQuery core style guide conformance: jquery.mobile.controlGroup.js 2011-06-28 19:01:27 -04:00
Rick Waldron
5b02da2c09 jQuery core style guide conformance: jquery.mobile.buttonMarkup.js 2011-06-28 18:30:17 -04:00
Rick Waldron
eaa91317d1 jQuery core style guide conformance: jquery.mobile.media.js 2011-06-28 18:19:05 -04:00
Kin Blas
aff87cc9f1 Fix for the mysterious "page is too large" error Todd and Scott were seeing on Blackberry 5 prior to shipping jQM beta 1.
Turns out this little code was enough to invoke the error:

"/dir1/dir2".replace(/\/?/, "");

Rewrote the regexp in path.makePathAbsolute() that was stripping leading slash, and trailing filename/slash. This gets around the problem.

Special thanks to @adambiggs for helping me test 33 iterations when trying to narrow down what in jquery.mobile.navigation.js was choking BB5.
2011-06-27 16:50:01 -07:00
Kin Blas
008c5d7458 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-27 10:25:34 -07:00
Kin Blas
0d65a0d1c5 - Fixed issue #1923 - url of form is miscalculated
- Added code to calculate whether to choose the documentUrl or the page Url in the case where an action is not specified on a form element.

	- Fixed bug in the navigation "submit" handler where an error was being thrown if "type" was not specified.

	- Fixed typo "diabled" id typos in tests/unit/navigation/index.html.

	- Added tests for form submissions with no action in both base and non-base specified cases.
2011-06-27 10:25:13 -07:00
Adam Vaughan
abc2763188 don't submit the filter form 2011-06-27 09:35:16 -06: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
Ghislain Seguin
ebd4eeced0 Fix for issue #1929 (second attempt) 2011-06-24 21:13:46 -07:00
Ghislain Seguin
00297af2ab Revert "Fixed issue #1929" as it is breaking horizontal controlgroups
This reverts commit 226873d988.
2011-06-24 20:08:51 -07:00
Ghislain Seguin
50a26155e0 Merge remote-tracking branch 'upstream/master' 2011-06-24 16:13:02 -07:00
Ghislain Seguin
226873d988 Fixed issue #1929 2011-06-24 16:11:54 -07:00
scottjehl
9f07a1cfb2 ensure that the active button state is still applied to check and radio sets that don't have icons 2011-06-24 12:40:01 -04:00
Ghislain Seguin
ffdab6ff32 Fixed a glitch in the icon class name generation. It was adding ui-icon-ui-icon-checkbox-off to the checkbox icon element (2x ui-icon) and similar to radio icon element 2011-06-24 12:40:01 -04:00
Ghislain Seguin
9c3ebe07ea Added state class to label of checkbox/radio 2011-06-24 12:40:01 -04:00
scottjehl
5a4b5f3206 Implemented the new design for checkboxes and radios as proposed by @toddparker. 2011-06-24 12:40:00 -04:00
Scott Jehl
b3ad908afa Merge pull request #1891 from cburgdorf/patch-1
Some jslint fixes. Corrected curly braces on new line and ==/=== issues
2011-06-24 08:53:46 -07:00
Martin Sutherland
83973b429b Fix issue 1913 - unnecessary ajax call and duplicate DOM nodes when refreshing a page with a dialog visible 2011-06-23 18:33:06 +02:00
Tobias Bosch
ff2ef4076b fix issue 1851 as suggested 2011-06-23 13:31:05 +02:00
cburgdorf
c13a2f3bcb Fixed curly braces on new line 2011-06-22 09:31:49 -07:00
scottjehl
a43ce64db2 moved our form binding into the _registerInternalEvents callback, to ensure it's not bound until after mobilinit. 2011-06-22 11:43:22 -04:00
cburgdorf
5c0cfb29cb Some jslint fixes. Corrected curly braces on new line and ==/=== issues 2011-06-21 23:53:16 -07:00
scottjehl
c227535bd7 removed vclick + click combined event binding, which was in there as a workaround for a not-consistently-occurring bug in Android 2.1. I think the real issue is related to lack of dynamic base tag support, and that occasionally, a relative href click will use default handling in 2.1 and go where it shouldn't (ignoring the base href). Either way, this double binding causes history problems in Safari, so I'm removing it while we search for a better 2.1 workaround. Fixes #1870 2011-06-21 12:43:17 -04:00
scottjehl
ffdfa4e7c2 moved page load event bindings to a post-mobileinit callback so that the useFastClick option can be set before it is used. Unit test included. Fixes #1869 2011-06-21 11:33:38 -04:00
Kin Blas
5890a801be Fixed a couple of errors caught by jshint. 2011-06-20 15:09:54 -07:00
Ghislain Seguin
31bd038d74 Merge remote-tracking branch 'upstream/master' into issue-1470
Conflicts:
	tests/unit/listview/index.html
	tests/unit/listview/listview_core.js
2011-06-20 12:51:40 -07:00
scottjehl
fe79ad63a4 fixed a bug in IE desktop, where calling scrollTop before domready was trying to access the body element before it was present. Moved this logic to domready and all's well. 2011-06-20 13:57:38 -04:00
scottjehl
9fffcb6eca bind to click as well, for an edge case in android 2.1 2011-06-20 13:44:33 -04:00
scottjehl
9c9a9ad147 set page min-height using availHeight or availWidth, rather than height (to fine tune height to exclude browser chrome). Also, reset the active page height on throttledresize and pageshow, eliminating some duplicate calls. 2011-06-20 13:31:26 -04: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
823485ce11 Blur other buttons when a new one is clicked and gaining focus. This gets rid of the trail of focus states issue we've been seeing. Fixes #1840. 2011-06-19 14:34:36 -04:00
scottjehl
84f4d9dc3c switched the order so that scroll check happens earlier. 2011-06-19 14:20:19 -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
ca0c1165fd should be bound to throttled resize as well, actually. 2011-06-19 08:00:10 -04:00
scottjehl
8c6164dbf0 Added new throttledresize special event, including unit tests. This event prevents browsers from running continuous callbacks on resize, which we use internally for orientationchange in browsers like IE. It still ensures that a held event will execute after the timeout, so logic that depends on the final conditions after a resize is complete will still execute properly. This improves performance noticeably, and... Fixes #1496. Fixes #1848. Fixes #1422.
The included tests pass most of the time, but they need improvements as they will occasionally fail due to faulty timing in the tests themselves, as far as I can tell (the code tests out fine in our functional demos).
2011-06-18 11:41:47 -04:00
scottjehl
ee424f5f97 only bind to orientationchange, as resize is built into it already as a fallback 2011-06-18 10:43:11 -04:00
scottjehl
90fb871ee8 referenced the full object to avoid a minifier issue when trying to reference a local variable. Will follow up on this... 2011-06-18 09:19:45 -04:00