Commit graph

1489 commits

Author SHA1 Message Date
gseguin
36e0fb53c7 Made _refreshCorners private 2011-08-11 12:08:27 -07:00
gseguin
418bb8786a Fix for issue #1450: added refreshCorners method to listview widget 2011-08-10 23:15:38 -07:00
Andri Möll
70bd1ba371 Fix nested waiting-for-dom for initializePage.
Using dom-ready within dom-ready meant that initializePage went to the end of
the queue. That brought problems when other dom-ready code expected jQM to be
set up, capable of changing pages and so on. But because $.mobile.pageContainer
is also set in initializePage, changePage and others didn't work.
2011-08-10 18:01:36 -07:00
John Bender
73953915c0 merge fix for select 2011-08-10 14:21:49 -07:00
John Bender
6cdec7d14d minor whitespace 2011-08-10 13:35:35 -07:00
John Bender
28120ea929 fixed selected items bug 2011-08-10 13:35:05 -07:00
John Bender
b38efe1a63 whitespace 2011-08-10 00:01:55 -07:00
John Bender
09339ac534 grouped prive and public methods 2011-08-09 23:59:07 -07:00
John Bender
345fbbdacc more whitespace 2011-08-09 19:14:27 -07:00
John Bender
0d4bd449ca more whitespace 2011-08-09 19:12:43 -07:00
John Bender
3b7ab6dac7 whitespace 2011-08-09 19:11:46 -07:00
John Bender
629ef9a024 simplified the extension calls in the custom select 2011-08-09 19:08:34 -07:00
John Bender
e12f5122bd use cached value in button text method 2011-08-09 15:58:13 -07:00
John Bender
62e1631353 fix label class application bug 2011-08-09 15:50:42 -07:00
John Bender
88edbc666f cleaning up this and self references 2011-08-09 15:28:54 -07:00
John Bender
12771afade _create cleanup 2011-08-09 15:05:15 -07:00
John Bender
2839cfb469 small cleanup in naming and grouping 2011-08-09 14:52:31 -07:00
John Bender
0f072416cb moved shared functionality into native and custom selects as necessary 2011-08-09 14:41:51 -07:00
John Bender
67e76a072b removed options from shared, move theme determination to method 2011-08-09 13:47:40 -07:00
Rick Waldron
45ab6a9ddc Core Style Conformance: jquery.mobile.init.js 2011-08-09 11:16:41 -04:00
John Bender
fd8fb03205 segregate native and select 2011-08-08 16:47:53 -07:00
John Bender
974e4d0801 moved to event model for custom overrides, still need to centralize shared file 2011-08-08 16:19:52 -07:00
John Bender
ff8a1ceefa .call on shared 2011-08-08 13:53:53 -07:00
John Bender
426da8f495 centralizing options 2011-08-08 13:33:24 -07:00
John Bender
76adbc9293 minimize extension in individual widgets 2011-08-08 13:31:50 -07:00
John Bender
5c76de355a shared components moved to shared init function 2011-08-08 12:52:32 -07:00
John Bender
9eec8df520 moved native shared component into shared, will do the same for custom 2011-08-08 12:07:37 -07:00
John Bender
64a9b595d3 start of seperation of native select 2011-08-08 11:40:26 -07:00
John Bender
bac747498f small refactor before final split 2011-08-07 21:04:53 -07:00
scottjehl
0253e67fbb fixed an error in the array reference that was causing support tests to not test properties as they should. 2011-08-07 13:19:20 -04:00
scottjehl
e1fbaf9cce updated to support deep links to nested lists and dialog parent pages. Still battling a 2x back history issue on those. 2011-08-05 18:49:16 -04:00
scottjehl
e564eb1c5f first pass at implementing pushstate support from an external file. 2011-08-05 18:49:16 -04:00
John Bender
d293e968f9 moved _buildList into custom 2011-08-05 15:35:13 -07:00
John Bender
7494e398a5 moved open to custom and added a test for native select change removing the button down class 2011-08-05 14:45:08 -07:00
John Bender
3133ccbc3a moved close to custom, and disable/enable methods common with tests for enable/disable 2011-08-05 12:21:45 -07:00
John Bender
c739597755 core style guide 2011-08-05 09:37:55 -07:00
John Bender
7e09b9af28 ghetto cherry pick of custom dialog fix for chrome redraw issue and height calculation stability 2011-08-05 09:32:40 -07:00
scottjehl
d120404ead Merge remote branch 'origin/master' 2011-08-05 09:58:30 -04:00
scottjehl
28eebc25de Brought back the page content div theme inheritance from b1. Thanks to abdulqadir for the suggestion. Fixes #2221 2011-08-05 09:58:25 -04:00
Ghislain Seguin
b23d444c71 Merge pull request #2216 from johnbender/listview-filter-callback
Listview filter callback
2011-08-04 16:12:53 -07:00
John Bender
8660befda8 removed global from listview 2011-08-03 17:50:48 -07:00
John Bender
6bbf830da8 simple filterCallback in the options to delegate complex search to end users 2011-08-03 17:10:44 -07:00
John Bender
bda2358e6c Merge branch 'fcheslack-footer-control-group-buttons' 2011-08-03 13:39:22 -07:00
John Bender
6529dc7f8c Merge branch 'footer-control-group-buttons' of https://github.com/fcheslack/jquery-mobile into fcheslack-footer-control-group-buttons 2011-08-03 13:19:28 -07:00
John Bender
3dbb018e82 Merge pull request #2173 from SamuelKC/selecthidefix
Fix issue of the select menu not closing on Chrome - Fixes 2198, 2194, 2197
2011-08-03 11:52:17 -07:00
gseguin
cce89cb91d Merge remote-tracking branch 'upstream/master' 2011-08-03 11:16:20 -07:00
gseguin
6da588c394 Coding standards 2011-08-03 11:15:03 -07:00
Rick Waldron
953f0cdf97 Core Style Conformance updates; jquery.mobile.support.js 2011-08-03 13:19:53 -04:00
scottjehl
a48128f9a3 wrapped in parens for clarity 2011-08-03 12:15:04 -04:00
scottjehl
d42db4d4ee This change moves the ajax navigation opt-out list (which contains, mainly, browsers that have broken history tracking of hash changes) over to the support.js file, and added a multi-tierd Nokia condition that checks a number of UA conditions to try and pinpoint Nokia + Symbian + Webkit + 7.3-or-older. Big thanks to Bryan and Stephanie at Yiibu for their helpful article on Nokia device detection. That said, we would LOVE to find a non-UA based way to handle this detection. Reluctantly, this seems to do what we need at the moment, while assuming hash history will be improved in any post-7.3 release.
Also included in this commit is a Nokia-specific condition that re-appends existing stylesheets to force them to render, as all pre-7.3 devices we tested would not render the CSS if it was referenced before the JavaScript (as we'd recommend doing). There may be a non-JS way to work around this problem, but for now, this seems to do the trick.
2011-08-03 12:15:04 -04:00
John Bender
58631807d4 moved common refresh functionality up 2011-08-02 16:00:37 -07:00
John Bender
edfef386b1 moved refresh to individual widgets, still some duplication to be moved into the common 2011-08-02 14:08:42 -07:00
John Bender
1d00ee316e forgotten bind on pagehide to fix height calculation issues 2011-08-02 12:38:53 -07:00
John Bender
be0dbb9b10 fixed some minor whitespace issues 2011-08-02 09:30:28 -07:00
John Bender
3950542884 made sure the dialog test fails many times, added an extra todo for moving the functionality to find the current theme if its not specified to a generic location 2011-08-02 09:30:28 -07:00
John Bender
b8451c5557 moved element creation and propertie declaration into the common object 2011-08-02 09:29:01 -07:00
John Bender
6e343c20cb fixed double wrap from local variables 2011-08-02 09:26:31 -07:00
John Bender
30c2e6c6a4 moved most of the build functionality to delegate objects 2011-08-02 09:26:31 -07:00
John Bender
0e7ded7709 create -> build, and list build up moved 2011-08-02 09:26:31 -07:00
John Bender
9014e243fb custome menu select creation begun 2011-08-02 09:26:31 -07:00
John Bender
4aa32698de move native menu creation to delegate object 2011-08-02 09:26:30 -07:00
John Bender
89e6f59bb3 Revert "removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit"
This reverts commit c318c5b7cf7d51a69438071cbfbcf307a27c7b7d.
2011-08-02 09:26:30 -07:00
scottjehl
db22dfa111 removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit 2011-08-02 09:21:21 -07:00
Scott Jehl
b7a19b604c Merge pull request #2184 from rwldrn/jquery.mobile.fixHeaderFooter.js
Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js
2011-08-02 07:24:08 -07:00
John Bender
f1d964e9e9 fix for cached page removal breaking dialog sized select menus Fixes #2181 2011-08-01 18:08:28 -07:00
Rick Waldron
627b9189d6 Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js 2011-08-01 18:34:49 -04:00
scottjehl
faf26d8f6d namespaced $.fixedToolbars to $.mobile. Kept a deprecated pointer to $.fixedToolbars that we'll want to remove later. This feature can now be documented. Addresses Issue #2024 2011-07-31 20:35:18 -04:00
scottjehl
ee17b4f05c Ensure that navigating backwards through dialogs works as expected when domCache is false (which is the default now). 2011-07-31 10:03:22 -04:00
scottjehl
be74405b49 Added a configurable timeout to $.mobile.loadPage to give pages that are being fetched from cache a little time to load before a loading message appears. We'll need to tweak this timer based on device testing to determine how long it takes on average to fetch a cached page. If the delay ends up needing to be longer than 300ms or so to suit some devices, it's probably not worth having this feature at all. 2011-07-30 08:33:04 -04:00
scottjehl
bdba60efd5 removed urlHistory references to (and use of) each entry's "page" property, which kept a reference to the DOM elements of each page that had been loaded. This fixes leaking memory on removed pages, and outsources page requests to the browser cache (for real this time :) ). 2011-07-29 19:51:17 -04:00
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
Samuel Padou
f097630a71 Fix issue of the select menu not closing on Chrome when we click out out of the menu or on the selected option 2011-07-29 17:39:53 +02: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
Faolan C-P
86824432e4 fix control group button selector in any .ui-bar instead of just .footer 2011-07-28 14:41:31 -04:00
Faolan C-P
21c8ce2989 add selector for links inside control groups in buttonMarkup 2011-07-28 14:35:47 -04: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