gseguin
3dc4b9f9fa
Removed activeBtnClass from selected option
2011-08-31 10:43:23 -07:00
gseguin
14c98e8ef7
Another version of https://github.com/jquery/jquery-mobile/pull/2363 by @jgable
2011-08-31 09:56:15 -07:00
John Bender
f679d30620
added ipv6 support to urlparse regex Fixes #2362
2011-08-30 15:59:46 -07:00
Kin Blas
191b5e04a3
Fix for issue 2345 - Flip toggle switches *ALWAYS* toggle
...
- We now track whether or not the user has modified the value of the switch control. If so, we don't toggle it's value on mouseup.
2011-08-29 12:39:25 -07:00
John Bender
07edada0dd
added todo to centralize page dom removal and ref counting Fixes #2329
2011-08-29 10:09:22 -07:00
John Bender
bddc8c8ed2
small tweak to directedHashChange to make sure the right value is passed in for isBack
2011-08-29 09:12:39 -07:00
scottjehl
d63350ca6c
set initial page div's data-url to location.pathname unless it has an ID on it. This fixes an issue where going back to the initial page will end up generating a new homepage rather than transitioning to the one already in the dom.
2011-08-28 00:06:27 -04:00
scottjehl
6de76168af
Clarified the documentation around the purpose of the pagebeforecreate event and removed the pagebeforecreate return value check, as returning beforecreate false is no longer relevant now that all plugins auto-init externally, rather than inline in the page plugin.
2011-08-27 11:26:16 -04:00
scottjehl
10e2d5a61a
previous commit should not have switched the order of trigger and add classes. Reverted, with cleanup still in place.
2011-08-27 11:07:21 -04:00
scottjehl
ce5ce102dc
A little simplification in the page plugin
2011-08-27 10:58:46 -04:00
John Bender
a3487e620d
simplified the default hash handling prevention back to somthing akin to @scottjehl's original implementation
2011-08-27 02:47:54 -07:00
John Bender
76d5c49b78
minor refactor and check for defined attr
2011-08-27 01:01:54 -07:00
John Bender
6b010492b2
minor refactors in nav and pushstate for clarity
2011-08-27 01:01:54 -07:00
John Bender
82cce1fa60
fix the chrome bug and reduce the number of crazy hash juggles we do
2011-08-27 01:01:54 -07:00
John Bender
328d58b2e9
fixed role retention issue from clearing the dom cache
2011-08-27 01:01:54 -07:00
John Bender
3a13a6ec75
renamed replacestate key handling method
2011-08-27 01:01:53 -07:00
John Bender
b569c1cc8b
fix for dialog and subpage key url issues with replace state
2011-08-26 14:54:27 -07:00
John Bender
49cf3af91a
Merge branch 'replacestate-external'
2011-08-25 13:05:54 -07:00
John Bender
df9e23390f
extra comments for clarity
2011-08-25 11:51:01 -07:00
John Bender
8a994d3dfa
add config option for pushstate
2011-08-25 11:42:32 -07:00
John Bender
44eaf7707b
fix broken hash on dialog after initial page load
2011-08-25 10:49:51 -07:00
John Bender
af0e1f5d7e
whitepasce in nav
2011-08-25 10:49:51 -07:00
Ghislain Seguin
884bfdee3b
Merge pull request #2312 from MichelHartmann/patch-1
...
Fixed closing the dialog, when the page is removed.
2011-08-25 08:38:44 -07:00
John Bender
7d68059dd6
removed initial disable for spurious popstate and moved to doc ready init for late inclusion in the document instead of monkey patching
2011-08-24 15:59:06 -07:00
gseguin
2cc8c7ff34
Fix for issue #779
...
Addressing @jakeboone02's comments at dd9ae4898b (commitcomment-531858)
2011-08-24 13:54:03 -07:00
gseguin
e98215a3e1
Whitespace change
2011-08-24 10:48:13 -07:00
Michael Platov
b9557705b3
Fix for issue 509 textarea autogrow
2011-08-24 14:28:12 +08:00
John Bender
657f6b8c3f
make sure the popstate replacestate call uses the full href
2011-08-23 12:07:52 -07:00
John Bender
2c7789b6a3
clean scoping add, comment
2011-08-22 14:58:42 -07:00
John Bender
49eeccdde3
rescope self
2011-08-22 14:31:14 -07:00
John Bender
e3fb2e285b
handle query strings for initial replaceState
2011-08-20 07:29:21 -07:00
John Bender
547afbf184
manually hoist variables
2011-08-20 07:21:49 -07:00
Michel Hartmann
9c088cd5ba
Fixed closing the dialog, when the page is removed.
2011-08-20 06:31:20 +03:00
John Bender
1dd791175a
proposed solution to the navigate, refresh, back button pushstate bug. the determination of the hash to be stored in the replaced state is done in a consistent fashion where, if there is no hash, its defaulted to the original load path by puting the logic in a central method. @scottjehl give it a try and let me know if this works for you
2011-08-19 18:54:29 -07:00
scottjehl
b438472fec
if no hash is present, run a replacestate. All nav tests still passing.
2011-08-18 22:41:13 -04:00
scottjehl
bf593857f6
degraded type should have been "text" instead of true. Addresses a comment in issue #2123
2011-08-18 22:01:58 -04:00
Kin Blas
ab1a52b51d
With the exception of "ms", which we don't support anyways, all vendor prefixed CSS properties are converted into style object properties with a name that begins with an upper case. Note, that webkit duplicates these properties on the style object, such that the property can be referenced with a leading caps, or leading lower-case.
...
This change was necessary at least for the transitions branch because the lookup for the 'transform' property was failing on FireFox.
2011-08-18 16:40:08 -07:00
John Bender
2c3d9bc2f1
removed extra replace state fire, need to check with @scottjehl
2011-08-18 16:25:21 -07:00
gseguin
9f3836e7b1
Fix for issue #1405 : Moved assignment of $activeClickedLink to the vclick handler in charge of adding the active state
2011-08-17 17:32:55 -07:00
John Bender
fb5d9df56f
simplified the pushstate some more
2011-08-17 16:32:59 -07:00
John Bender
b197e760fd
simplified the hash handling with help from @jblas
2011-08-17 16:22:09 -07:00
gseguin
6fb51b1d3d
replaced ui-btn-active by $.mobile.activeBtnClass
2011-08-17 16:12:42 -07:00
gseguin
3737d170a0
Merge remote-tracking branch 'upstream/master'
2011-08-17 13:29:07 -07:00
gseguin
a620d97868
Re-uses the boolean create at creation time to let the refresh functions know that they've been called by create
2011-08-17 12:09:07 -07:00
John Bender
b7d5df786f
whitespace and comment merge conflict resolved
2011-08-17 11:09:05 -07:00
John Bender
eba4e7eeb4
switched path helper
2011-08-16 17:06:55 -07:00
John Bender
b41b0573d2
leverage the path helpers to get this right
2011-08-16 13:25:04 -07:00
John Bender
72ce65767e
support embedded pages as a hash since the concatenated form represents a file
2011-08-16 12:55:03 -07:00
Samuel Padou
e8f78dacb1
check the domCache option before rebinding the page remove when closing a full page select menu
2011-08-16 13:57:07 +02:00
John Bender
43b1b776d9
minor refactor for comprehension
2011-08-15 17:01:37 -07:00
scottjehl
c864dac3b1
added replacestate to the tests, as that's the method we're using
2011-08-14 13:44:40 -04:00
scottjehl
0512916e72
centralized the hashchange fired flag
2011-08-14 10:20:14 -04:00
scottjehl
854ce44179
timeout number is arbitrary. Still looking for a way around it though.
2011-08-14 10:03:16 -04:00
scottjehl
2d29880f4c
whitespace stuff
2011-08-14 09:57:12 -04:00
scottjehl
3ebe7b4218
just use location.pathname. same thing, in hindsight.
2011-08-14 09:30:33 -04:00
John Bender
cfe12241a2
fixedcustom select extension to respect the prototype alterations Fixes #2272
2011-08-12 09:56:54 -07:00
scottjehl
6d2f9737db
conditionally trigger the hashchange after a popstate, only if it doesn't trigger its own.
2011-08-12 12:53:07 -04:00
gseguin
5917b379e1
Merge remote-tracking branch 'upstream/master'
2011-08-11 17:01:15 -07:00
gseguin
dd9ae4898b
Fix for issue #779
...
Added a ui-li-has-count class for listview items that contain a count bubble. Changed default padding-right to 25px adjusting it to 75px when count bubble is present.
2011-08-11 16:59:51 -07:00
gseguin
ef431a870c
remove corners on all li elements of the list when refreshing corners
2011-08-11 16:22:11 -07:00
John Bender
5d081afa48
removed leftover files from old decoupled select menu iterations
2011-08-11 15:34:44 -07:00
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
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
scottjehl
ffa35c0548
improved minheight page logic
2011-06-17 19:19:47 -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
3bd713c185
added resetActivePage on pagecreate, orientationchange, and after transitions.
2011-06-17 19:19:47 -04:00
scottjehl
690dc66f7c
set heights including respective scrolls
2011-06-17 19:19:46 -04:00
scottjehl
aa950ba125
Only call scrollTo if there's a scroll distance we need to go to. If the distance we're jumping to is 20px or less, let it go in for tolerance. Reset toPage height before scrolling, focusing.
2011-06-17 19:19:46 -04:00
scottjehl
df7ac2f642
fix up the page heights during transitions, and min-heights otherwise.
2011-06-17 19:19:46 -04:00
scottjehl
ed7aae1d1c
hide address bar during page changes by catching ajax clicks early through binding to touchend, and make pages fit screen height during transitions
2011-06-17 19:19:46 -04:00
scottjehl
758e430653
fixed theme inheritance on filter lists in IE7.
2011-06-17 19:02:53 -04:00
scottjehl
722ed2cbbf
If ajax is disabled, exit the click handler early and avoid parsing the href at all. Thanks for the idea, @toddparker! Fixes #1846 .
2011-06-17 18:33:16 -04:00
Ghislain Seguin
f32fe66bf7
Merge remote-tracking branch 'upstream/master' into issue-1470
...
Conflicts:
tests/unit/listview/listview_core.js
2011-06-17 10:46:52 -07:00
Kin Blas
525543b06d
Merge pull request #1662 from gseguin/issue-1654
...
Issue 1654
2011-06-17 09:41:22 -07:00
Ghislain Seguin
ff8517c915
Merge remote-tracking branch 'upstream/master' into issue-1654
...
Conflicts:
tests/unit/listview/listview_core.js
2011-06-17 09:37:36 -07:00
scottjehl
1dd6608829
remove active button state on buttons that close dialogs. Fixes #1839
2011-06-17 02:11:59 -04:00
Scott Jehl
0cff6336bd
Merge pull request #1489 from bernharduw/master
...
Radio buttons in nested listviews don't work. Fixes #1486
2011-06-16 22:41:16 -07:00
scottjehl
d2a6397983
added list filterTheme option. Available as data attribute data-filter-theme on listviews with filters enabled. Fixes #1790 - List view filter can not be themed.
...
Thanks for the idea @adamvaughan! Docs update coming next.
2011-06-17 00:59:17 -04:00
Scott Jehl
004f67d384
Merge pull request #1817 from wtw/master
...
Fixes #1549 .
2011-06-16 21:29:12 -07:00
scottjehl
fd738c5b04
Modified the listview thumbail-finding logic to specifically find first children of the li or the primary button's inner anchor element. Fixes #1794 . Fixes #1458
2011-06-17 00:21:11 -04:00
Scott Jehl
cc809da95c
Merge pull request #1828 from eddiemonge/bug_1825
...
Code guideline styling changes for collapsible.js
2011-06-16 20:59:23 -07:00
scottjehl
e06ae4a5b9
rolled back the change to looking up list filter placeholders. Seems to work fine as it was originally. Added a custom placeholder to the listview filter with headings demo page.
2011-06-16 23:47:04 -04:00
Scott Jehl
60f80b9473
Merge pull request #1838 from adamvaughan/issue1836
...
Fix for issue 1836 - List view filter placeholder data attribute is not used. Edits coming after this commit.
2011-06-16 20:37:40 -07:00
Kin Blas
96b3e710d4
Added utility functions $.mobile.getDocumentBase() and $.mobile.getDocumentUrl() so that developers can retrieve the original base and url used when loading the document.
2011-06-16 15:43:40 -07:00
Kin Blas
8b6d14bb03
Fix for issue 1826 - Nightly build - dialog box no longer rounded corners
...
- Don't set a default value for the 'role' option to loadPage() and changePage(). Instead, rely on the role attribute that is on the element.
- Fixed an error that was happening when a hash change involves going from a dialog back to another dialog. I had recently made changes that assumed the 'to' variable was always going to be a url string, but it turns out in the dialog back to dialog case, it is an actual jQuery collection.
2011-06-16 13:36:39 -07:00
Adam Vaughan
d1a958d1d7
Fix for issue 1836 - List view filter placeholder data attribute is not used.
2011-06-16 11:46:04 -06:00
Kin Blas
d2f115349a
Fix for issue 1833 - No page transition used when hitting the browser forward button
...
- Don't use the transition of the initial page on the stack.
2011-06-15 15:28:52 -07:00
jblas@adobe.com
dd69372dd4
Adjusted the urlParserRE regexp to account for double slashes in the directory path to work around a phonegap 0.9.4.
2011-06-15 10:37:08 -07:00
Eddie Monge
0de386eda9
Code guideline styling changes for collapsible.js
2011-06-14 15:32:57 -07:00
Todd Parker
7e40ddff4e
Merge pull request #1803 from eddiemonge/combine
...
minor changes to combine.php
2011-06-14 11:42:40 -07:00
Kin Blas
c011f51f14
Removed unused path.isRelative() function. Replaced unit tests for isRelative() with tests for path.isRelativeUrl.
2011-06-13 16:45:10 -07:00
Wolfram Twelker
41c1116aa2
Fixed ticket 1549 - no change event triggered on deselecting first
...
option in multiple-select
2011-06-11 17:12:15 +02:00
Kin Blas
e286808391
Rule of thumb ... get your logic right and your code will behave as you expect.
...
- I should've been using !== instead === when figuring out docBaseDiffers.
2011-06-10 16:13:58 -07:00
Kin Blas
963a84cb18
IE7 returns an empty string for regexp submatches while all other browsers return undefined. Modified the parseUrl() function to normalize all non-matches to an empty string and replaced all strict checks for undefined to strict checks for an empty string.
2011-06-10 15:31:09 -07:00
Kin Blas
244385b9f9
Merge branch 'master' into path-fixes
2011-06-10 10:02:11 -07:00
Kin Blas
b7bcf93620
- We were missing a changepage notification in the case where we were transitioning to the same page.
...
- Added changepagefailed notification for the case where the load fails. Note we still need beforeloadpage/loadpage notifications.
- Misc fixes to stop the navigation unit tests from seemingly random failures. It seems that the hash resets in setup/teardown of the test modules sometimes interferes with the changePage() requests in the tests. Added code to the setup/teardown functions to wait for the reset to complete before moving on to the tests.
2011-06-10 10:00:25 -07:00
Ghislain Seguin
4572200107
Coding standards
2011-06-10 09:40:41 -07:00
Ghislain Seguin
c9abc368d8
Issue #1762 : Removed extra iteration on list items
2011-06-10 09:40:15 -07:00
frietsch
d99d096ab7
Bugfix: ":jqmData(ajax='false')" might also match forms, which have neither of "src" or "href". In that case, thisUrl is undefined, and the following replace results in an error.
2011-06-09 08:21:21 -07:00
Eddie Monge
3688e8fa92
minor changes to combine.php
2011-06-09 01:51:37 -07:00
Kin Blas
3d6bd402a2
- Changes to get the navigation_helpers.js unit tests green.
...
- Modified isExternal so that it returns true/false to help with unit tests.
2011-06-08 17:20:01 -07:00
scottjehl
5512c8af02
use prop instead of attr for enable/disable
2011-06-08 18:12:42 -04:00
Kin Blas
eb082c27e3
Merge branch 'master' into path-fixes
...
Fixed Conflicts:
js/jquery.mobile.navigation.js
2011-06-08 15:10:16 -07:00
Kin Blas
8e1e77badf
Get deep linking to internal pages working again. We can now also deep link to nested list sub-pages that are contained within internal pages.
2011-06-08 15:06:41 -07:00
scottjehl
93e7afd4b1
make sure nested collapsible sets don't toggle their parent collapsibles when expanded. Fixes #1387
2011-06-08 18:00:26 -04:00
Kin Blas
33b9ee8052
Changes to make sure the data-url are either an id, site relative path (for same domain), or absolute Url (for cross-domain Phone Gap).
2011-06-08 14:47:24 -07:00
Kin Blas
a99728d178
- Added addSearchParams() utility function.
...
- Removed unused path functions: setOrigin(), makeAbsolute(), and isQuery().
- Modified loadPage() so that it uses addSearchParams() instead of naively appending it to the URL.
- Switched the global "click" handler back to using the link @href attribute and manually converting it to an absolute URL. This was necessary because it turns out that the href property on a link is dynamically calculated at the time of access based on the *CURRENT* base tag setting. This means the same link can return a different href value if the the base tag is different each time you access it.
2011-06-06 15:58:21 -07:00
Kin Blas
19f1a775b9
Missed a couple of places I should've used hrefNoHash when I converted documentBase to an urlObject.
2011-06-04 10:51:41 -07:00
Kin Blas
f9dd767528
Switched form handler over to processing absolute urls.
2011-06-04 01:22:16 -07:00
Kin Blas
ba502f0aff
Changes to switch the global link click handler over to processing absolute urls.
2011-06-04 00:26:25 -07:00
Ghislain Seguin
9d3862c825
Whitespace change
2011-06-03 19:02:13 -07:00
Kin Blas
b148ee424a
Added isSameDomain() Utility function.
2011-06-03 13:57:25 -07:00
Ghislain Seguin
3ee2585cba
Fix for issue #1617 : Nested lists with same parent text resolve to the same sub-page.
2011-06-03 10:55:04 -07:00
Kin Blas
b31825a1d7
Fixed issue 1767 - loadPage/changePage broken in trunk (latest build)
...
- Not sure how/why I added that extra absUrl, but its gone now.
2011-06-02 10:41:55 -07:00
Kin Blas
a2182dafa9
- Added a getClosestBaseUrl() utility function for calculating the correct base URL to use for a given element.
...
- We should be using makeUrlAbsolute() instead of makePathAbsolute() when calculating the documentBase.
- Removed bogus code in pathname calculatino in makeUrlAbsolute().
- Reworked calculation of search in makeUrlAbsolute() to prevent an undefined in the case where rel and abs urls have no search.
2011-06-01 17:15:18 -07:00
Kin Blas
3ca5dd854a
- Added URL parsing and relative to absolute path and url utility methods.
...
- Switched the base tag management code over to using new utilities.
2011-06-01 11:59:13 -07:00
eddiemonge
244cda822a
add white space for code standard
2011-05-31 14:44:31 -07:00
eddiemonge
0438418175
merge changes
2011-05-31 14:41:54 -07:00
Kin Blas
a5d3c05e4b
Merge branch 'dialogToCodeStandards' of https://github.com/StevenBlack/jquery-mobile into StevenBlack
...
Fixed Conflicts:
js/jquery.mobile.dialog.js
2011-05-31 14:14:05 -07:00
eddiemonge
d3df858eea
missed an equal sign
2011-05-27 12:13:48 -07:00
Kin Blas
991db0de46
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-27 10:55:20 -07:00
Kin Blas
ef9d55f4b6
Hopefully the last set of fixes for issue 1712 - $.mobile.changePage broken in latest
...
- The test case calls changePage() with a hash ("#b"). In our normal processing of clicks/form submits we strip it before calling. The old code did a strip in changePage() just in case, so I added it back in to fix the last bug.
2011-05-27 10:53:19 -07:00
Scott Jehl
4b40896b6a
Merge pull request #1709 from shanag/checkboxradio-keyboard-fix
...
Allow checkboxes and radio buttons to be selected with the keyboard
2011-05-27 07:11:21 -07:00
Shana Golden
c9d97ef261
Allow checkboxes/radio buttons to be selected with keyboard - updated to use prop()
2011-05-27 10:06:18 -04:00
eddiemonge
371efce3c3
actually use the defined variables
2011-05-26 17:20:56 -07:00
Kin Blas
6fdb90df17
Fixed a typo in $.mobile.loadPage.defaults. The default for the data property should be undefined, not the string "undefined".
2011-05-26 17:04:27 -07:00
Kin Blas
c8761525e7
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-26 16:41:41 -07:00
Kin Blas
7befe9087a
The signature of changePage() has changed but folks need some time to transition to using the new signature. I added code to changePage() that maps any old signature calls to changePage() into a new call. This should fix issue 1712 ($.mobile.changePage broken in latest). This code should be removed before shipping 1.0.
2011-05-26 16:39:09 -07:00
Todd Parker
6ac1598033
Merge pull request #1719 from StevenBlack/buttonMarkupToCodeStandards
...
jquery.mobile.buttonMarkup.js: Whitespace changes, bring this package up to coding standards
2011-05-26 13:04:37 -07:00
Steven Black
bce94ffbaa
jquery.mobile.collapsible.js: Whitespace to standards. Now passes jsHint.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:41:01 -04:00
Steven Black
399c2c5af0
jquery.mobile.buttonMarkup.js: Whitespace changes, bring this package up to jQuery coding standards.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:08:10 -04:00
Mat Marquis
86295b170d
Correcting my own comment.
2011-05-26 13:00:01 -04:00
Mat Marquis
4947eacf1c
Bound 'silentscroll' event back to document, as it was causing issues in modern browsers and made no difference in IE 7/8.
2011-05-26 12:40:49 -04:00
Mat Marquis
f36e92fb7b
Desktop IE wasn't reporting a scrollTop value for fixed headers/footers—'window' is now provided as a fallback in the event that .scrollTop() reports zero.
2011-05-26 11:51:16 -04:00
Steven Black
ab76ac33ac
jquery.mobile.dialog.js: Whitespace changes and string delimiters, bringing this up to jQuery coding standards. Renamed one memory variable for legibility and clarity.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 10:01:39 -04:00
Kin Blas
e5876e3d3b
Attempt number 2 at fixing 1708 - - nightbuild close dialog throwing error
2011-05-25 17:17:21 -07:00
Kin Blas
bee8549a18
Fixed a bad typo caught by @johnbender and @gseguin.
...
- Replaced an un-intentional semi-colon with a comma.
2011-05-25 15:13:44 -07:00
Shana Golden
4ca2fc5287
Allow checkboxes and radio buttons to be selected with the keyboard
2011-05-25 15:45:41 -04:00
Kin Blas
923b047e75
Fix for issue 1708 - nightbuild close dialog throwing error
...
- Check the returned active object to see if it is valid before attempting to extract the transition out of it. Default to $.mobile.defaultDialogTransition if there is no active object.
2011-05-25 12:44:10 -07:00
scottjehl
76fe9ca3fd
moved previous logic to the init file so it's not overridden by defaults.
2011-05-24 17:39:53 -04:00
scottjehl
7b578f7873
Disabled ajax navigation in BlackBerry 5 and Opera Mini, for a more usable overall experience (and in some cases, due to insufficient native history implementations that don't track hash changes). Fixes #1644 and Fixes #1276
2011-05-24 17:08:29 -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
Kin Blas
786ef25e0a
Changes to get the navigation unit tests green again.
...
- Modified changePage() to set isPageTransitioning earlier.
- Modified pageSequence() to allow the current changepage callback stack to unwind before firing off the next function in the sequence.
2011-05-23 14:30:40 -07:00
John Bender
dc530ea751
page sequence helper added, nav tests in a somewhat better state. the event trigger spot, namespace, and general setup are all up for debate
2011-05-21 22:15:12 -07:00
Kin Blas
5ba2cc975e
Inverted the logic around ignoreNextHashChange so that it actually matches the name of the variable.
...
Modified the hashchange callback so that it specifies a "none" transition, instead of a false boolean, for the case where the hash changed and there is nothing on the urlHistory stack.
2011-05-20 15:19:54 -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
Ghislain Seguin
be94de1c18
Merge branch 'master' of https://github.com/jquery/jquery-mobile into issue-1654
2011-05-19 17:42:25 -07:00
Kin Blas
edc94fb6ec
The dialog "pop" unit test was failing because the active variable in changePage() was being dereferenced. The unit test clears the urlHistory.stack array manually so we just need to make sure we don't dereference active if it doesn't exist.
2011-05-19 17:01:26 -07:00
John Bender
6487eb684f
spaces to tabs in core
2011-05-19 15:36:22 -07:00
Ghislain Seguin
4255f5752f
Fix for issue #1654
2011-05-18 23:46:46 -07:00
Kin Blas
59afbda49b
Added a pageContainer option to changePage and loadPage.
2011-05-18 18:06:15 -07:00
Kin Blas
3a047112a0
Removed debug try/catch block I accidentally checked in.
...
Made lots of whitespace changes to bring file up to jquery core style guidelines.
2011-05-18 16:38:04 -07:00
Ghislain Seguin
bd068616c6
Fix for #1470
...
Corner styling issue with listview refresh on growing lists
2011-05-18 16:07:18 -07:00
Kin Blas
cafb6acef9
Separated changePage() into 2 functions:
...
- loadPage() now loads all pages into the DOM.
- changePage() only functions on pages that are in the DOM. If you call it with a URL instead of an element, it will call loadPage() which will then trigger a call to changePage() with the resulting page at a later time.
2011-05-18 15:58:15 -07:00
scottjehl
ae7d62a1bc
code style & repetition cleanup
2011-05-18 18:32:59 -04:00
Scott Jehl
24fff18186
Merge pull request #1656 from VTWoods/bug_1635
...
#1635 Collapsible not triggering resize event. Fixes #1635
2011-05-18 15:30:11 -07:00
vtwoods
5918e5ad9f
Moved the resize event into the fixed toolbar plugin.
2011-05-18 18:17:41 -04:00
scottjehl
fd0819f379
turned auto back button additions off by default. Fixes #1657 . To turn auto backbuttons on, you can set the page plugin's autoBackBtn option to true per page, or globally via its configuration prototype. You can also use the data-auto-back-btn attribute on a page div.
2011-05-18 17:17:13 -04:00
vtwoods
18c7d590ce
Merge branch 'master' of https://github.com/jquery/jquery-mobile into bug_1635
2011-05-18 16:20:21 -04:00
vtwoods
7022c19322
Fixed the bug where collapsing or expanding a collapsable did not cause a resize event to be triggered
2011-05-18 16:12:57 -04:00
gnikibog
1b49245489
Missing space in generated page markup
2011-05-18 07:02:06 -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
Todd Parker
877651a7cd
Merge pull request #1631 from joshiabk/master
...
jQuery Search Textbox change to add new focus event which will show clear button when some item gets pasted directly without key event to search text box. Thanks joshiabk
2011-05-14 03:25:23 -07:00
Abhishek Joshi
cb645ede22
Add new focus event which will show cross button on search textbox when some item get paste directly without key event to search text box
2011-05-13 22:44:47 -07:00
Kin Blas
7df38d9abf
Upgrade to jQuery 1.6.1 to pick up :checked fixes.
2011-05-13 15:27:09 -07:00
Steven Black
f8516d4dbe
jquery.mobile.support.js: Whitespace changes only. Bring code up to jQuery coding standards in anticipation of adding Opera Mini feature detection. Passes jsHint except for the James Padolsey/ jdalton non-UA-based IE version check, which is OK. All tests pass.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-11 20:47:37 -04:00
Todd Parker
b80689a1dc
Merge pull request #1522 from markandey/master
...
If 'input' element has id string with dots in it, code fails. Fixed by tweaking the regex to escape dots in the selector. Thanks markandy and eddiemonge
2011-05-10 12:12:19 -07:00
Kin Blas
4f4bb4d309
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-09 14:24:49 -07:00
Kin Blas
24fc06b234
Issue 1592 - Make sure we set lastval on create so we don't compare against the stirng "undefined" on first keyup/change event.
2011-05-09 14:23:06 -07:00
Todd Parker
084bbbd839
Merge pull request #1573 from marcoos/master
...
fix for issue 1530: Page title is changing when I use popup select menu (Dropdown). Thanks marcoos.
2011-05-09 13:03:02 -07:00
Kin Blas
1387fd457f
Merge branch 'filterspeed' of https://github.com/nsaleh/jquery-mobile into pull-1475
...
Resolved Conflicts:
js/jquery.mobile.navigation.js
- Removed these changes as they are not related.
2011-05-09 12:27:44 -07:00
Nabil Saleh
4ffb0a5f33
- code cleanup
...
- added class-based hiding
2011-05-09 13:25:13 +02:00
Kin Blas
e597ccb381
Fix for issue 1580 - phonegap: Pages with data-ajax="false" on form fail to load
...
In the $.ajax() callback, we look for elements with @href, @src, and @data-ajax="false" elements, the code then assumes that matching elements will have either @href or @src, which of course forms don't ... they have @action ... so the code throws an exception because thisUrl is undefined.
- I reworked the code to handle action and check to make sure we have an attribute and url string before attempting to use them.
2011-05-06 13:05:56 -07:00
Kin Blas
e775f5e83a
Fix for Issue 1578 - Can't load file:// pages
...
This was caused by this checkin:
4b4ee54a72
The change caused the base tag to be reset to file:// (literally with no path).
All that was missing was a small tweak to base.reset() to use the new initialPath variable instead of docBase.
2011-05-06 10:28:31 -07:00
scottjehl
4b4ee54a72
This change sets the base tag properly on page load and page changes, corresponding with the recent change to absolute path hash urls. Images and other assets will direct relative to the document in which they reside. This may not cover new path situations Kin has documented, but it does fix the regression so things work as they did before the change. Tested in non-base supporting browsers to verify it works there too. The following page should have an image in the content, verifying the fix http://jquerymobile.com/test/#/test/docs/about/intro.html . Fixes #1508
2011-05-06 09:37:41 -04:00
Marek Stepien
50ee33a84f
fix for issue 1530: Page title is changing when I use popup select menu ( Dropdown)
2011-05-05 23:26:41 +02:00
scottjehl
131cb2423f
updated to 1.6
2011-05-04 22:24:36 -04:00
Paul Nicholls
91126e4e85
Issue #1514 (Regex breaking Firefox >3.6)
...
Remove greedy matches from start and end of regex - there's no need for them, and they cause immense slowdown (on the order of 3-4 seconds on medium-size pages loaded via ajax).
2011-05-03 10:48:06 +12:00
Kin Blas
af3b8ce3ae
Merge pull request #1544 from StevenBlack/TransitionsToStandard.
...
Transitions to standard
2011-05-02 14:23:36 -07:00
mark.dawn@gmail.com
4bccf1d8a6
some string literal fixes
2011-05-02 13:30:36 +05:30
John Bender
377c0067a7
remove checked state from radio button inputs that are not checked. use jquery attr accessor instead of expando to guarantee consistent values. Fixes #1532 .
2011-05-02 00:53:51 -07:00
Steven Black
b78c6ea372
jquery.mobile.transition.js: code to jQuery core standards, part deux.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:19:30 -04:00
Steven Black
2c444ef34d
jquery.mobile.transition.js: code to jQuery core standards.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:16:06 -04:00
John Bender
9096763741
finished basic pathing tests sans site relative root ir /
2011-04-29 22:23:57 -07:00
John Bender
a50912e0de
remove ie debug alert
2011-04-29 22:22:18 -07:00
Steven Black
520b8e22d4
More formatting changes to meet JQuery Core Style Guidelines.
...
)) -> ) )
...and others.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-04-29 08:22:03 -04:00
Nabil Saleh
eefbdecf0a
further cleanup
2011-04-29 10:50:10 +02:00
Nabil Saleh
3339a272e5
code cleanup
2011-04-29 10:41:36 +02:00
Nabil Saleh
ca767ff3aa
code cleanup
2011-04-29 10:09:04 +02:00
Steven Black
7447ba01f7
jquery.mobile.navigation.js: Changes throughout the file for jQuery coding standards including:
...
* whitespace within parenthesis
* double quotes
* line breaking for object key assignments
Also made several changes suggested by jsHint.
All tests pass as before -- still failing first three tests as before.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-04-28 21:12:01 -04:00
John Bender
39e3f1be95
Merged pull request #1494 from rs/master.
...
Fix an alert(false) on app init when $.mobile.loadingMessage is set to false
2011-04-28 15:03:31 -07:00
John Bender
ceea4bca66
remove ie debug alert
2011-04-28 15:02:59 -07:00
Bernhard Gschwantner
6da11e97b0
CHG: refinement as proposed by scottjehl
2011-04-28 22:09:02 +02:00
Todd Parker
c2e65107c0
Merged pull request #1503 from eddiemonge/eddie_listview.
...
micro-optimizations and styling changes to listview.js
2011-04-27 13:34:39 -07:00
mark.dawn@gmail.com
20fb94df98
Merge remote-tracking branch 'origin/master'
2011-04-27 23:50:51 +05:30
scottjehl
7c8f8e9406
updated jQuery to 1.6 RC
2011-04-27 07:53:59 -07:00
Kin Blas
52a666d71f
Check $from before dereferencing it.
2011-04-26 16:36:31 -07:00
Kin Blas
19c06952fd
Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
...
The expected prototype for a transitionHandler is as follows:
function handler(name, reverse, $to, $from)
The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.
In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:
$.mobile.defaultTransitionHandler = myTransitionHandler;
The changes to make all this necessary are as follows:
- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.
- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.
- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.
- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.
- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 14:06:10 -07:00
Kin Blas
14f73b27ee
Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
...
The expected prototype for a transitionHandler is as follows:
function handler(name, reverse, $to, $from)
The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.
In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:
$.mobile.defaultTransitionHandler = myTransitionHandler;
The changes to make all this necessary are as follows:
- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.
- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.
- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.
- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.
- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 13:53:11 -07:00
mark.dawn@gmail.com
69a0a47a0c
XPATH Selector was not well formed of type label[for=ID]
...
let say id of an inputbox is x.y.z then query
$("label[for=x.y.z]") gonna fail
$("label[for=\"x.y.z\"]") gonna work
2011-04-26 19:31:43 +05:30
Kin Blas
3a164c6cc8
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-04-22 10:56:55 -07:00