John Bender
50acf2eb7c
fix to use options defined on page widget to determing domCache settings
2011-07-29 12:55:40 -07:00
John Bender
27b4ba1691
ajaxDomCaching -> domCache
2011-07-29 10:10:26 -07:00
John Bender
180243e9ad
added a todo for the subpage tracking
2011-07-29 10:10:26 -07:00
John Bender
85114be097
use childPages method to abstract method for finding child pages, hopefully we can find something better than the url selector
2011-07-29 10:10:25 -07:00
John Bender
3035387446
first test for nested page removal/caching
2011-07-29 10:10:25 -07:00
John Bender
d716f3e9e7
moved dom cache check above the enhance to let widgets unbind parent page hide behaviour. added parent removal to listview special remove
2011-07-29 10:10:25 -07:00
John Bender
57a1e9abf7
whitespace and log statement in listview
2011-07-29 10:10:25 -07:00
scottjehl
115f1710b1
remove entire list when parent page is hidden and next page is not a sub list. Note: the unbind of the "pagehide.remove" does not appear to be preventing the parent page from removal, and it regenerates its sublists when revisiting that parent, since it was removed.
2011-07-29 10:10:25 -07:00
scottjehl
a8c3859d84
using regular data method to access widget
2011-07-29 10:10:25 -07:00
scottjehl
dc054a10e7
implemented ajax dom caching option of the page plugin, which can be overridden by page options or data attribute. Includes unit test to support feature.
2011-07-29 10:10:25 -07:00
Ghislain Seguin
30e8ea8e09
Coding standards
2011-07-28 15:25:57 -07:00
Ghislain Seguin
29c408f32a
Merge remote-tracking branch 'upstream/master'
2011-07-28 15:25:10 -07:00
Ghislain Seguin
703d31073e
Merge pull request #2102 from kpozin/patch-6
...
Cache option indices in <li>s in custom select menus instead of doing linear search on every click
2011-07-28 15:21:52 -07:00
scottjehl
263193f490
Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable.
2011-07-27 18:42:16 -04:00
Ghislain Seguin
6ff9d9a06a
Coding standards
2011-07-27 11:22:13 -07:00
Ghislain Seguin
d1e8083f15
Merge pull request #2152 from webmynd/master
...
Consider data-role when picking page transition in changePage
2011-07-27 10:04:39 -07:00
Ghislain Seguin
f84f359743
Merge pull request #2154 from SamuelKC/bug_2064
...
Fix for issue #2064
2011-07-27 09:53:20 -07:00
Scott Jehl
2c4615176d
Fixed typo in reference to initSelector default value.
2011-07-27 11:58:20 -03:00
Samuel Padou
051855e94d
Bug 2064; Add try/catch block to prevent 'Unspecified error' when we use an IFrame on IE9
2011-07-27 14:53:27 +02:00
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