Ghislain Seguin
00e62041ed
Added r.js
2011-12-01 17:28:10 -08:00
Ghislain Seguin
9bfb4b83f3
Whitespace change
2011-12-01 17:28:10 -08:00
Ghislain Seguin
276fd72b0e
Modified shimming condition
2011-12-01 17:28:10 -08:00
Ghislain Seguin
1f9e17172c
Added almond.js
2011-12-01 17:28:10 -08:00
Ghislain Seguin
5e19574165
Added RequireJS 1.0
2011-12-01 17:28:09 -08:00
Ghislain Seguin
e9e7b96d01
Removed
2011-12-01 17:28:09 -08:00
Ghislain Seguin
03878b7be8
Added module for docs
2011-12-01 17:28:09 -08:00
Ghislain Seguin
34ce8a8feb
Added jQuery AMD shim to support jQuery < 1.7
2011-12-01 17:28:09 -08:00
Ghislain Seguin
c1672dc654
Fixed path to almond.js
...
Excluded order plugin
2011-12-01 17:28:09 -08:00
Ghislain Seguin
46cd8f8436
added order plugin to the baseUrl directory
2011-12-01 17:28:09 -08:00
Ghislain Seguin
ff5f38a1f2
AMDized
2011-12-01 17:28:09 -08:00
Ghislain Seguin
6d67f667cc
AMD build file
2011-12-01 17:28:08 -08:00
Ghislain Seguin
c76f3551b6
Main AMD module
2011-12-01 17:28:08 -08:00
Ghislain Seguin
981f7567a7
Added requirejs v1.0
2011-12-01 17:28:08 -08:00
Ghislain Seguin
63292b805d
AMDized
2011-12-01 17:28:08 -08:00
Ghislain Seguin
7f14a3dfed
AMDized
2011-12-01 17:28:08 -08:00
Jake Boone
1e669734c3
Spelling correction in jquery.mobile.fixHeaderFooter.js.
2011-12-01 15:33:18 -05:00
Eugen Bolz
27f49f0dcf
Slider: use also option text as title
2011-11-29 08:35:18 +01:00
Eddie Monge
43d83e2ef9
Not using YUI for js so removing this line
2011-11-26 12:27:31 -08:00
Eddie Monge
26dc452dc9
Update IE checker code for compiler
2011-11-26 12:21:18 -08:00
John Bender
3e47bff3ff
whitespace and spelling correction
2011-11-23 13:30:40 -08:00
jrowny
1597d756d8
slider step, remove round clean up code a bit
2011-11-23 13:30:40 -08:00
jrowny
e09374b41d
add slider step support from jQuery UI
2011-11-23 13:30:40 -08:00
jrowny
7d204230f0
Add slider step support from jQuery UI
2011-11-23 13:30:40 -08:00
Kin Blas
2b40784c4e
Merge pull request #3122 from hpbuniat/closestEnabledButton-speedup
...
Minor performance optimization for closestEnabledButton in buttonMarkup
2011-11-21 16:35:19 -08:00
Ethan Romba
a8c04855b4
Issue #3081 : Range inputs on dialogs don't degrade
...
The degradeInputs plugin bails early for pages that do not have
data-role="page". This behavior prevented range inputs (for slider widgets)
from degrading properly when used in dialogs.
Updated degradeInputs unit tests to check dialogs, too.
2011-11-21 16:47:14 -06:00
John Bender
7c62253ee5
Merge pull request #3097 from eddiemonge/intro
...
Old file that was replaced by license.txt in the root folder
2011-11-21 14:40:01 -08:00
John Bender
c80428062a
move to hasClass check to avoid psuedo selector slowdown
2011-11-21 13:09:00 -08:00
Thomas Lallement
9d6ca3cc11
Edited js/jquery.mobile.navbar.js via GitHub
2011-11-21 13:09:00 -08:00
John Bender
6f00d35db8
move pagechange binding for textarea autogrow outside the check for text content
2011-11-21 10:15:47 -08:00
Hans-Peter Buniat
f3f5ba62e5
changed $.inArray to indexOf in closestEnabledButton - see http://jsperf.com/fsdsgt4
2011-11-20 23:32:14 +01:00
Eddie Monge
ff6a349229
Old file that was replaced by license.txt in the root folder
2011-11-17 17:47:06 -08:00
Ghislain Seguin
3542c9c0b1
Merge pull request #3008 from eddiemonge/live-delegate
...
Change .live() to .delegate()
2011-11-17 15:13:29 -08:00
Mat Marquis
a0ec2eb4f3
Fixes #3086 — Windows Phone 7 seems unable to use find() for an attribute-based selector, in this context.
2011-11-17 18:08:05 -05:00
Ghislain Seguin
3d17a69d8b
Merge pull request #3010 from gseguin/issue-2905
...
Decoupled collapsible and collapsible set
2011-11-17 09:35:05 -08:00
Mat Marquis
ff93c76037
Fixes #3041 — Cleans up the support test for Opera Mini and opts it out of fixed toolbar behavior.
2011-11-16 17:13:13 -05:00
Mat Marquis
f016c2dc21
Ensures that dialogs’ content elements _do_ inherit the overall page theme.
2011-11-16 15:25:00 -05:00
Mat Marquis
4c5e85cc50
Correctly addresses #3020 — “Content” elements now correctly apply themes, but do not inherit the theme set on the overall page.
2011-11-16 10:35:03 -05:00
jblas@adobe.com
16aafad67e
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-15 16:18:50 -08:00
jblas@adobe.com
098eed9c3b
Fix for #2826 - an error occurred with click event on svg element using "live" or "delegate"
...
- Modified findClosestLink() to check the ele.nodeName type before trying to access it.
2011-11-15 16:17:14 -08:00
Mat Marquis
b3e65595e6
Fixes #3053 — I was a little overzealous in ensuring “content” elements didn’t inherit a theme if it wasn’t intended.
2011-11-15 17:37:14 -05:00
jblas@adobe.com
ba8458daef
Fix for issues:
...
- Modified findClosestEnabledButton() so that instead of checking for existence of ele.className, before using it, that it check for typeof ele.className === 'string'. This prevents us from looking at the className property of SVG elements which actually use type SVGAnimatedString which does not have the split() function in its API.
2011-11-15 10:19:37 -08:00
jblas@adobe.com
db2782b564
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-14 09:45:21 -08:00
jblas@adobe.com
3353649a29
Uh, yeah, I'll take back another 700 msecs on WP7.5 (Mango) and 200 msecs on iPad. Thank You.
...
- Don't set the item class on the list item or it's btn-inner children until after the main processing loop. We now use a dictionary of item-classes to track what items get what set of classes and then set them all afterwards. This cuts down the per-item addClass() and children() function overhead significantly and gets us big wins on platforms like WP 7.5
2011-11-14 09:42:48 -08:00
Mat Marquis
f62c5c01b3
Fixes #3028 — Listviews themselves are now inheriting the theme set at the page level. Individual list items remain themeable.
2011-11-14 12:02:42 -05:00
jakeboone02
9040f56c53
Fix comments
2011-11-12 10:26:20 -05:00
Mat Marquis
b2106887d8
Merge remote-tracking branch 'upstream/master'
2011-11-11 18:54:48 -05:00
jblas@adobe.com
0e0435ed1c
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-11 14:54:05 -08:00
jblas@adobe.com
6bd8f7a85b
Reclaiming another 200-300 msecs on the 400 listview item page for iPad and WP7.5.
...
- Use $.data() instead of $.fn.data() in buttonMarkup().
- Avoid excess function overhead with a filtered children() call by walking the DOM ourselves in listview code.
2011-11-11 14:51:58 -08:00
Mat Marquis
5262c2be56
Fixes #3020 — Theme-dependent backgrounds should be applied only to ‘data-role=content’ within a dialog.
2011-11-11 15:20:36 -05:00
John Bender
ced1f865a2
whitespace and a comment on setting buttonPlaceholder to undefined
2011-11-11 12:08:59 -08:00
frietsch
c824b16816
Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time.
2011-11-11 12:08:59 -08:00
frietsch
b051c3203e
Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time.
2011-11-11 12:08:59 -08:00
John Bender
73508f1dbf
Merge branch 'pbosakov-issue_2821'
2011-11-11 11:20:57 -08:00
John Bender
46f6c678eb
simplify nested branches
2011-11-11 11:20:30 -08:00
jblas@adobe.com
343161c972
Reclaim 250 msecs on iPad and WP7.5 (Mango) by simply combining find().filter() calls and getting rid of fake pseudo selectors :eq(0) and :last.
2011-11-11 10:31:31 -08:00
John Bender
1f20d7c002
Merge branch 'issue_2821' of https://github.com/pbosakov/jquery-mobile into pbosakov-issue_2821
2011-11-11 09:58:16 -08:00
jblas@adobe.com
ac8a7c7cb9
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-10 14:15:25 -08:00
jblas@adobe.com
87070cc690
Reclaiming another 700-800 msecs on the 400 listview item test for WP7.5 (Mango) with a few minor tweaks:
...
- Added _findFirstElementByTagName() which does basic DOM traversal to find the first of an element with the given nodeName. Use this in place of $.fn.closest() and $.fn.children() calls that filter with ":eq(0)".
- Avoid calling $.fn.add() if you can. The creation of the new collection is costing about 400 msecs.
- Avoid calling $() with markup for a single node, just use document.createElement() and pass it to $().
2011-11-10 14:15:12 -08:00
Ghislain Seguin
c2436806f4
Removed double setting of ui-body- class on collapsible content
2011-11-10 09:54:58 -08:00
Ghislain Seguin
eb28b7ec57
Removed console.debug
2011-11-10 09:36:44 -08:00
Ghislain Seguin
3b13aaf288
Re-applied Kin's optimizations
2011-11-10 09:36:44 -08:00
Ghislain Seguin
6d4274fd6c
Decoupled collapsible and collapsible-set
...
That fixes issue #2905 as well
2011-11-10 09:36:44 -08:00
Ghislain Seguin
94389bdcad
Renamed variable
2011-11-10 09:36:44 -08:00
Ghislain Seguin
4bba893940
Fixed custom select dialog header styling
2011-11-10 09:17:31 -08:00
Ghislain Seguin
acdbd8f1b7
Renamed variable
2011-11-10 09:17:31 -08:00
John Bender
8ef15e82cc
correction to license include in js/index.php
2011-11-09 22:36:00 -08:00
jblas@adobe.com
a8a6f58d3e
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-09 18:02:27 -08:00
jblas@adobe.com
8e23813d25
Got rid of pseudo selectors :header and :eq(0) since they take a long time on WP7.5 (Mango). This shaves off 300 msecs when loading the form gallery page.
2011-11-09 17:59:25 -08:00
Eddie Monge
c367c832e2
Change .live() to .delegate()
2011-11-09 16:01:37 -08:00
John Bender
7085843b74
moved info text to license-info.txt
2011-11-09 16:00:25 -08:00
John Bender
989f7f1542
move intro to text for css combine, js combine, and makefile use
2011-11-09 15:45:08 -08:00
John Bender
3fdb12600e
Merge pull request #2994 from eddiemonge/5535e24c46c95f16b437c0ebec8c19094caf18a7
...
License Changes
2011-11-09 15:27:25 -08:00
Ghislain Seguin
1b2f1d8e40
Merge pull request #2894 from MauriceG/patch-3
...
Fix for #2893 : Buttons keep ui-btn-down-x class if leaved with mouse button pressed
2011-11-09 13:46:04 -08:00
John Bender
1d4109295d
textinput whitespace
2011-11-09 11:43:40 -08:00
John Bender
d50aa91e6d
comment clarification
2011-11-09 11:42:57 -08:00
John Bender
3f52c482d0
account for css load in initial document load and page transition with text area autogrow
2011-11-09 11:35:21 -08:00
Eddie Monge Jr.
6b5ca6311a
Remove unneeded css as height will suffice. Trigger the inputs keyup. Im not sure calling $(keyup) called the function on the element.
2011-11-09 08:32:00 -08:00
jblas@adobe.com
cb820f6e5d
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-08 17:07:18 -08:00
jblas@adobe.com
76766a635f
Speed up listview enhancement for WP 7.5 (Mango). This change allows the 400 listview item page to load in 3-4 seconds instead of 30 seconds.
...
- Modified refresh() so that it manually checks for the first image in the list item or .ui-link-inherit element. This allows us to avoid executing a selector with a direct descendant and :eq(0) pseudo which is quite slow on WP 7.5 IE.
2011-11-08 17:04:41 -08:00
Eddie Monge
5535e24c46
Update to add license to root, update individual files to not have license, add license to built and testing files
2011-11-08 15:43:36 -08:00
John Bender
94c2651244
Merge pull request #2959 from garann/158a65c1fd7f34afb6f157921a1604f6e3159a29
...
Store title of initial page
2011-11-08 13:38:29 -08:00
jblas@adobe.com
b198f57276
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-08 11:21:01 -08:00
jblas@adobe.com
488e8f70ad
Some minor performance tweaks:
...
- Cache the nsNormalize() results so we don't have to call $.camelcase() every time jqmData() is called.
- Move the regexp used in our monkey patched $.find outside of the function to save some regex compilation cycles.
2011-11-08 11:19:39 -08:00
Ghislain Seguin
8dcef4493d
Fix for #2954
2011-11-07 21:02:28 -08:00
jblas@adobe.com
e17e29b559
Eeking out another 200+ msecs (on iPad) by simply switching to children("img:eq0") instead of find(">img:eq0"). Still need to figure out how to get rid of the find(".ui-link-inherit>img:eq(0)") which is the where the bulk of listview enhancement is spent on WP7.
2011-11-07 15:16:32 -08:00
jblas@adobe.com
8177ec4bb5
Shave another 200-300ms off the 400 listview item page by simply reducing the number of function calls we make during enhancement.
...
- Got rid of _itemApply() and moved it's functionality to the bottom of refresh(), doing finds from $list where we can, and li where we can't. Boom, at least 1200+ less function calls.
2011-11-07 12:38:54 -08:00
Garann Means
158a65c1fd
Store title of initial page so it will appear correctly if reloaded via link instead of back button
2011-11-07 14:23:27 -06:00
Ghislain Seguin
47e0e4bf99
Fixed inheritance of content theme
2011-11-04 22:34:58 -07:00
Ghislain Seguin
26c48c8c6c
Fix for #2871 : Added overlayTheme option to dialog widget
2011-11-04 22:34:58 -07:00
Mat Marquis
63573bce5e
Merge pull request #2934 from garann/master
...
Issue #1447 - unescape entities in page titles
2011-11-04 15:04:26 -07:00
jblas@adobe.com
0b5f6dab5d
Reworked getInheritedTheme() to avoid closest() and attr(). This new version shaves off 200ms of page enhancement time on the forms gallery page on a Droid X (Android 2.1).
2011-11-04 14:11:19 -07:00
Garann Means
6699dab7d1
Corrected logic for locating entities in titles
2011-11-04 15:08:10 -05:00
jblas@adobe.com
97e3f8a800
Fix for issue #2520 - No longer able to remove / expire pages reliably
...
- Modified loadPage() so that if we are attempting to load the first page of the application document, that we first check to make sure it is in the DOM before returning our cached copy. If it is not in the DOM, we let it fall through to the ajax loading code so that it gets recreated. This is necessary since some developers are agressively pruning pages, including embedded ones, for various reasons.
2011-11-04 10:58:44 -07:00
Garann Means
d7d52544e7
Fix for #1447 - create element and read text from there to unescape entities in page title
2011-11-04 12:33:07 -05:00
John Bender
408c98322a
whitespace in mobile widget
2011-11-02 14:23:29 -07:00
Petko Bossakov
8387919d26
Issue 2821: prevented caling blur() on a body element, causes bug in IE8
2011-11-02 22:09:25 +02:00
jblas@adobe.com
8c81959a7d
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-11-01 14:59:36 -07:00
jblas@adobe.com
e056d20728
Some minor listview tweaking to eliminate 1200 $.fn.find calls in our 400 item listview test case.
...
- Moved some of the finds we used to do for every item, out of the processing loop so we do just 3 big finds. This shaves off 200-300ms on iPad iOS 4.3.5.
2011-11-01 14:57:31 -07:00
John Bender
010e93152d
Merge pull request #2899 from jpfiset/master
...
Fix for issue #2897
2011-11-01 09:44:43 -07:00
jblas@adobe.com
ebd7e04ce0
More enhancement optimizations:
...
- Modified buttonMarkup so that it checks options against undefined before calling jqmData(). This is necessary because false is a valid option.
- Modified listview so that it doesn't check for a data-counttheme unless it actually has a count item.
2011-11-01 09:26:41 -07:00
Jean-Pierre Fiset
bd5f62cb3c
Fix for issue #2897
2011-11-01 11:00:27 -04:00
Maurice Gottlieb
3080b2a9c4
removing now also the ui-btn-down-x class when button loses focus
2011-11-01 14:34:53 +01:00
jblas@adobe.com
86e4e6fb43
Some code optimizations to speed up page enhancement.
...
- Avoid using $.each() when you can directly iterate on the collection. This avoids extra function calling overhead.
- Avoid calling jqmData() for options that are specified.
- Avoid calling $.fn.wrapInner(), creating the DOM nodes manually is much faster.
2011-10-31 23:45:42 -07:00
John Bender
a8202d240d
reference the buttonMarkup text wrapper element through data
2011-10-31 13:24:17 -07:00
John Bender
0ffaab8d22
switched to prop per @eddiemonge
2011-10-31 11:44:56 -07:00
Alex Roberts
6b767b4b8d
Update form button text on refresh.
...
Allows submit button values to change dynamically, and update accordingly in the UI. Such as in the event a button should read "Update" instead of "Save".
2011-10-31 11:05:54 -07:00
Maurice Gottlieb
aec206b712
Fix for #2881 - @wilto Could you please review this:
...
Add the ui-overlay-shadow class to both, content and, if there, to the footer.
Then add the ui-corner-bottom-class to the last one.
2011-10-29 16:52:31 +03:00
Ghislain Seguin
f81888c4e1
Fix for #2865 : when it's the first time we load the page, use the page title if there is one
2011-10-27 22:28:14 -07:00
Ghislain Seguin
3e99437104
Merge pull request #2873 from eddiemonge/patch-1
...
Some code cleanup
2011-10-27 22:20:24 -07:00
Ghislain Seguin
03e63af26f
Merge pull request #2874 from eddiemonge/patch-2
...
Proposed fix for 2847
2011-10-27 22:19:28 -07:00
Todd Parker
6264d95da2
Merge pull request #2812 from redaemn/flip-switch-improvements
...
Fix for issue #2756 - flip toggle slider animated snapping. Thanks redaemn!
2011-10-27 18:31:39 -07:00
Eddie Monge Jr.
5a285701a8
Proposed fix for 2847
2011-10-27 18:10:49 -07:00
Eddie Monge Jr.
c04755d859
Some code cleanup
2011-10-27 18:09:01 -07:00
Ghislain Seguin
5804e364c1
Revert "on page-reload, i believe, toPage.jqmData( "title" ) is null and the page-header-text is always used"
...
This reverts commit 3d0f10d186 .
2011-10-27 15:28:22 -07:00
Maurice Gottlieb
3d0f10d186
on page-reload, i believe, toPage.jqmData( "title" ) is null and the page-header-text is always used
2011-10-28 00:00:00 +03:00
Maurice Gottlieb
3622e5227a
Fix for issue #2528 removing listviews glowing corners
2011-10-27 15:28:05 +02:00
Mat Marquis
410a169b2b
Fixes an issue introduced in commit #b0db8976, where lack of indexOf() was keeping IE 6/7/8 (at least) from rendering anything at all.
2011-10-26 16:54:11 -04:00
jblas@adobe.com
3e0928fcb9
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-10-26 11:36:31 -07:00
jblas@adobe.com
1405a9453f
Add the XHR object to the data passed to loadpage and loadpagefailed callbacks. This was a low-hanging-fruit enhancement request for issue #2503 - User can't specify own error handling logic.
2011-10-26 11:34:27 -07:00
John Bender
28e860f121
Merge pull request #2840 from eddiemonge/min_license
...
Standardize licenses in files and match jQuery core min license in min fi
2011-10-26 10:55:47 -07:00
jblas@adobe.com
9a4eb1d833
Fix for issue #2835 - pagechangefailed not triggered when changing to non-existent internal page
...
- Modified loadPage() so that it bails if an embedded page is not found within the DOM.
2011-10-25 17:06:01 -07:00
Eddie Monge
f6e319ef8a
Standardize licenses in files and match jQuery core min license in min files
2011-10-25 11:15:19 -07:00
John Bender
580b376566
add a quick todo for a better possible solution for passing clicks from the label to the input
2011-10-25 10:55:30 -07:00
John Bender
4daed58a16
use triggerHandler to trigger click handler's bound to inputs on label click Fixes #1335
2011-10-25 10:53:20 -07:00
Gabriele Rabbiosi
ee05bb5576
Fixed issue #2631 - flip toggle switch animation improved
2011-10-23 14:30:10 +02:00
Mat Marquis
53099d8cc4
Re-addresses #2776 , and corrects an issue introduced in pull request #2783 . Incorrect default theme was being set on the backdrop of dialog-style select menus.
2011-10-22 13:21:45 -04:00
Gabriele Rabbiosi
396f8d019e
Issue #2756 - flip toggle switch value can be changed when the switch is disabled
2011-10-22 17:05:05 +02:00
Ghislain Seguin
55d89893a2
Merge pull request #2492 from hpbuniat/search-filter-bar-2416
...
Fix for #2416
2011-10-21 16:48:20 -07:00
John Bender
78381c6fed
account for dialog or other sub element enhancements
2011-10-21 16:30:07 -07:00
John Bender
6bd2805cb9
corrected commit: find the closest page to pull the keep native selector Fixes #2803
2011-10-21 16:25:19 -07:00
John Bender
1bc2aecc91
Revert "find the closest page to pull the keep native selector Fixes #2803 "
...
This reverts commit 9e1a3cc5a4 .
2011-10-21 16:25:19 -07:00
Eddie Monge
b0db897654
Button markup optimization
2011-10-21 16:08:28 -07:00
John Bender
9e1a3cc5a4
find the closest page to pull the keep native selector Fixes #2803
2011-10-21 15:56:26 -07:00
gseguin
04b2ec4c41
Revert "Small button markup optimization"
...
This reverts commit c496044a47 .
2011-10-21 15:54:13 -07:00
Ghislain Seguin
7259e48077
Merge pull request #2806 from eddiemonge/btn_markup
...
Small button markup optimization
2011-10-21 15:42:53 -07:00
Eddie Monge
c496044a47
Small button markup optimization
2011-10-21 15:22:43 -07:00
gseguin
e897c66c6f
Fix for issue #2225
2011-10-21 15:22:36 -07:00
toddparker
9e28d854c2
Reverting the last pull request, was causing a JS error and killing enhancement
2011-10-20 21:19:37 -04:00
toddparker
1496f5a485
Revert d61d6b0127953e10b17820cf1fdd14ed22a12c41^..HEAD
2011-10-20 21:18:03 -04:00
Todd Parker
d61d6b0127
Merge pull request #2768 from MauriceG/patch-10
...
fix for #2528 listviews: first list-item has "glowing" corners on top. Thanks MauriceG!
2011-10-20 17:07:05 -07:00
John Bender
8f5889a707
add linkBindingEnabled to mobile object for complex apps that want to handle all nav
2011-10-20 15:16:03 -07:00
Maurice Gottlieb
6e536eb6b5
fix for issue #2776 : Select full page menus background wrong
2011-10-21 01:05:18 +03:00
Maurice Gottlieb
e5b123ce75
fix for #2528 listviews: first list-item has "glowing" corners on top
2011-10-20 20:11:39 +03:00
jblas@adobe.com
3130b52b3f
Renamed the custom event I added to fix #2348 from "contentmodified" to "updatelayout" so that it reflects more of what it should be used for. Note that this also affects #2042 and the mention of collapsible in #2596 .
2011-10-19 08:50:01 -07:00
John Bender
be59c77125
switch to stop propagation on checkbox/radio vmouse
2011-10-18 13:56:31 -07:00
John Bender
18767e5ac1
whitespace in checkbox radio
2011-10-18 13:56:31 -07:00
John Bender
2580f889b7
Merge pull request #2733 from eddiemonge/coding_styling
...
Some coding style cleanups
2011-10-18 09:59:30 -07:00
John Bender
5fce1154f7
Merge branch 'patch-8' of https://github.com/MauriceG/jquery-mobile into MauriceG-patch-8
2011-10-18 09:06:55 -07:00
jblas@adobe.com
af870605ac
Removed all of the redundant code used to crawl the DOM upward looking for a theme to inherit from, and replaced it with a call to the new $.mobile.getInheritedTheme() function.
...
Also, fixed a bug in textinput.js that was placing a ui-body-null class on the input element when a data-theme was not specified directly on the input.
2011-10-17 16:54:20 -07:00
Eddie Monge
95674eb3d1
Some coding style cleanups
2011-10-17 16:39:05 -07:00
Maurice Gottlieb
5d662d4a7a
@johnbender
...
Could you please check again?
2011-10-18 01:30:08 +03:00
Matthew Leon Grinshpun
62459c7cca
fix for button iconshadow
2011-10-15 15:09:45 -04:00
Matthew Leon Grinshpun
6ef1d6ea6c
fix for shadows and corners
2011-10-15 15:00:37 -04:00
toddparker
84729a4fec
Added styling support for input type=color
...
Just for good measure. All HTML5 inputs are now auto enhanced into the
styled versions. We may need to decide if any of these need to be
degraded if the controls are wonky in some browsers.
2011-10-15 09:43:16 -04:00
toddparker
4ce1bfb795
Added new HTML5 date and time input support. Fixes #2144
...
Types added: input type time, date, month, week, date time,
datetime-local to auto for enhancements.
2011-10-15 09:33:06 -04:00
jblas@adobe.com
739373ee79
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-10-14 16:21:02 -07:00
jblas@adobe.com
2c2be3d9c6
Fixes #2659 - buttons don't inherit page-theme
...
- Insert the fake button container before calling buttonMarkup(). This allows the buttonMarkup() code to accurately calculate theme inheritance.
2011-10-14 16:18:49 -07:00
John Bender
a69e906cc7
add bail if the degrade Input page data isn't present
2011-10-14 15:33:50 -07:00
John Bender
f04efbd109
Merge branch 'Issue-#2654' of https://github.com/redaemn/jquery-mobile into redaemn-Issue-#2654
2011-10-14 15:30:36 -07:00
Todd Parker
d869cab1f0
Merge pull request #2711 from Wilto/disabled-sliders-selects
...
Fixes #2541 — Properly applies “disabled” styling and logic to custom form inputs. Thanks Wilto!
2011-10-14 14:21:16 -07:00
Mat Marquis
d0fc381d6b
Fixes #2541 — Properly applies “disabled” styling and logic to flip switches, sliders, and custom selects based on disabled attribute in underlying input markup.
2011-10-14 17:15:41 -04:00
jblas@adobe.com
ab8deade90
Fixed #2699 - Dialog reverse transition
...
- Moved the settings.transition calculation code before the code that pushes a new history item on the stack. This ensures that the proper transition is stored with the history item.
2011-10-14 09:30:26 -07:00
jblas@adobe.com
1da0eb3c1c
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-10-13 22:51:45 -07:00
jblas@adobe.com
773497b501
Fixed #2348 - lists-search-with-dividers breaks fixed footer
...
- Fixed header/footer code now listens for a custom event "contentmodified" on the document to figure out if it should be repositioned or not. Modified collapsible and listview to fire off contentmodified whenever they modify content. Developers can also fire off this event to trigger position updates for fixed headers/footers, so this could be used to address issue #2042 and the mention of collapsible in #2596 .
2011-10-13 22:45:52 -07:00
Gabriele Rabbiosi
9903376f35
degradeInputs now uses the recently introduced keepNativeSelector()
2011-10-14 00:50:29 +02:00
Gabriele Rabbiosi
7c34c5dc4b
Merge branch 'master' of git://github.com/jquery/jquery-mobile into Issue-#2654
2011-10-14 00:25:49 +02:00
John Bender
2de28ee69f
allow users to define keepnative on page elements
2011-10-13 14:53:36 -07:00
Gabriele Rabbiosi
1559478aae
Issue #2654 - 'degradeInputs' plugin doesn't trigger on 'create' events; modified plugin and added tests
2011-10-13 22:21:47 +02:00
Eddie Monge Jr.
7c449fc791
style cleanups
2011-10-12 13:10:08 -07:00
John Bender
f0db137ed9
render prefetched pages according to their data-rel attr fixes #2335
2011-10-11 16:19:18 -07:00
John Bender
4713bf26d5
remove log statements
2011-10-11 10:47:46 -07:00
John Bender
8dd3def54b
refactor for #509 , move to document ready instead of using ssetTimeout
2011-10-11 10:46:19 -07:00
John Bender
3306a3242c
Merge branch 'master' of https://github.com/mplatov/jquery-mobile into mplatov-master
2011-10-11 10:44:38 -07:00
John Bender
9b73a750d4
use jQuery.trim
2011-10-11 08:31:37 -07:00
John Bender
a4836ec5fd
move button to enhanceWithin
2011-10-10 14:21:37 -07:00
John Bender
404010839d
move slider to enhanceWith
2011-10-10 14:21:37 -07:00
John Bender
aa16aec358
move checkbox radio to enhanceWithin
2011-10-10 14:21:37 -07:00
John Bender
4ccd9b1bb3
move textinput to widget prototype enhanceWithin
2011-10-10 14:21:37 -07:00
John Bender
9e63d40298
todo for moving the keepnative to the widget itself, whitespace
2011-10-10 14:21:37 -07:00
John Bender
0e5583eae9
move to a centralized form element selector to leverage keepnative
2011-10-10 14:21:36 -07:00
John Bender
1b6ac290d2
add keepNativeSelector method to page widget for use in child form creat bindings
2011-10-10 14:21:36 -07:00
Kin Blas
c297f9675b
Fix for issue #2644 - Navigating to root "/" does not generate clean URL if root page has id="*"
...
- Fixed a bug in the hashchange handler for the pushstate/replacestate plugin that was incorrectly resolving hashchanges for ids against the current location.href, which could be a different document. We now resolve id hashes against the document URL.
- Modified changePage() so that it sets the settings.dataUrl option to the documentUrl, when navigating to the first-page of the application document. This prevents any id on the first-page from being added to the location hash. This means that URLs that used to be produced like this:
http://site.com/apps/#first-page-id
will now display as:
http://site.com/apps/
Developers that wish to get the old behavior back can register a pagebeforechange handler and do something like this:
$( document ).bind( "pagebeforechange", function( e, data ) {
var toPage = data.toPage;
if ( typeof toPage === "object" && !data.options.dataUrl && toPage[ 0 ] === $.mobile.firstPage[ 0 ] && toPage[ 0 ].id ) {
data.options.dataUrl = "#" + toPage[ 0 ].id;
}
});
The handler above will make sure that any page changes to the first-page will always display as:
http://site.com/apps/#first-page-id
2011-10-10 11:04:04 -07:00
scottjehl
f0403f9d9f
set native touch overflow enabling back to false
2011-10-07 18:48:38 -04:00
John Bender
71b0eb0552
move $.fn.text invocation to $.fn.getEncodedTest where the content is being re-added to the dom for xss safety Fixes #2550
2011-10-04 18:25:54 -07:00
Mat Marquis
54465515d7
Fixes #2593 — Prevents application of ‘ui-corner-bl’ and ‘ui-corner-tl’ classes to ‘ui-li-thumb’ elements that have a class of ‘ui-li-icon.’
2011-10-04 18:02:52 -04:00
Todd Parker
a783c740e8
Merge pull request #2609 from Wilto/voiceover-double-buttons
...
Fixes #2594 — Button text is no longer read aloud twice. Thanks @Wilto!
2011-10-04 14:10:29 -07:00
Mat Marquis
3c3a777158
Fixes #2594 — Button text is no longer read aloud twice (and treated as two separate navigable items) in iOS VoiceOver.
2011-10-04 16:45:14 -04:00
Todd Parker
32ed8cfbbd
Merge pull request #2607 from Wilto/collapsible-status-text
...
Fixes #2595 — Hidden “click to expand contents” text now updates. Thanks @rogerjohansson and @Wilto
2011-10-04 12:44:03 -07:00
John Bender
57079e1d6b
add the ability to disable native orientation change support Fixes #793
...
the frequency of the triggered event in certain android releases ( 2.1, 2.2) appears to be dependent on a host of things other than an actual orientation change, eg alerts, zoom, and scrolling. This provides a way for the user to disable it in favor for using throttled resize while still making use of the window.orientation where its available for reliability
2011-10-04 11:54:26 -07:00
toddparker
ff9720281b
Added another check for orientation change event for Android 2.1
2011-10-04 11:54:25 -07:00
John Bender
a0ddaab8e3
fix for incorrect portrait of lanscape value
...
The value attached to the event passed into handlers was based soley on screensize which is problematic given that some implementations (eg Android 2.3) don't change the screensize until after the event is fired. The orientation property appears to report a better value where it is provided so the solution is to prefer what it reports and then fallback to the screensize caculation where necessary.
2011-10-04 11:54:25 -07:00
John Bender
a20bb72a29
whitespace in events
2011-10-04 11:54:25 -07:00
Mat Marquis
4ed1e6ac11
Fixes #2595 — Hidden “click to expand contents” text now changes depending on current expanded/hidden state.
2011-10-04 14:01:08 -04:00
Kin Blas
8a25599b82
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-30 12:43:30 -07:00
Kin Blas
98eda9a0f4
Fixes #2582 - Refreshing a page with #&ui-state=dialog causes page duplication
...
- Modified loadPage() to call isFirstPage() with fileUrl instead of absUrl. Since fileUrl is the same as absUrl, but with the dialogHashKey stripped off, it will allow us to match against the url for the first-page.
2011-09-30 12:38:16 -07:00
Kin Blas
5a76ae7ed2
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-30 09:19:15 -07:00
Kin Blas
bafc18723b
Fixes #2574 - namespace pollution on 'search' variable (1.0rc1)
...
- There was a typo in the var declaration in makeUrlAbsolute(). Changed the ';' in the middle of the declaration to ','.
2011-09-30 09:17:05 -07:00
scottjehl
b4a7db2f1d
brought back these orientation rules as they're important in iOS5 layouts.
2011-09-29 18:38:15 -04:00
Kin Blas
47812171f1
Fixes #2570 - Refreshing a page with #&ui-state=dialog causes syntax error
...
- This was a regression from my fix to loadPage() for detecting un-enhanced pages by @id as a fallback. In this particular case dataUrl was being used to create an id selector, and of course if the dataUrl is an empty string we end up using "#" as the selector. The fix is to simply check for a non-empty dataUrl.
2011-09-29 15:16:21 -07:00
scottjehl
e29346daf5
Merge remote branch 'origin/master'
2011-09-29 14:47:24 -04:00
scottjehl
a93c4878aa
removed media classes JS - deprecated since Beta 1. Use CSS3 Media Queries with a polyfill instead :) Docs are updated to link to old code in case anyone still needs a backwards-port
2011-09-29 14:47:05 -04:00
scottjehl
ea3a34e055
changed comment in JS
2011-09-29 14:46:06 -04:00
Kin Blas
bb8326876b
Fixes #2212 - Collapsible heading vclick issue
...
- Switch to using "click" instead of "vclick" on collapsible headers since that is the only reliable way to prevent uncaught/mismatched clicks from firing on a different element.
2011-09-29 00:43:01 -07:00
Kin Blas
972500bbbc
Re-merge pull request #1550 from MaxThrax/master.
...
- Not sure what happened when I originally merged this back on 05/02/2011, but here it is again!
2011-09-28 22:08:30 -07:00
Kin Blas
d64eaf0500
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-28 11:40:33 -07:00
Kin Blas
34fb7b2dc1
Fixes #2537 - Add new pageremove event
...
- Modified the pagehide callback in $.mobile._bindPageRemove() so that it fires off a "pageremove" event. Callbacks can prevent the removal of the page by simply calling preventDefault() on the pagremove event object that is passed to their callback.
2011-09-28 11:37:46 -07:00
gseguin
b0969d1bcf
Merge branch 'issue-2527'
2011-09-28 11:03:18 -07:00
gseguin
b84a68edaa
Missing semi-colon
2011-09-28 10:57:46 -07:00
gseguin
5a97fd7b05
Fix for #2527
...
Use ui-body-* instead of ui-btn-up-* for collapsible content
2011-09-28 10:57:24 -07:00
Todd Parker
ee35ca635f
Merge pull request #2556 from Wilto/master
...
Assorted CSS adjustments. Fixes #1392 , Fixes #2513 . Thanks Wilto!
2011-09-28 10:54:17 -07:00
Kin Blas
ca9df1197a
Fixes #2529 - Transition to the same page
...
- So it seems just allowing changePage() to process same toPage and fromPage is not enough. I modified the CSS3 keyframe
animation plugin so that it only removes the ui-page-active class from the fromPage if it is *NOT* the same as the toPage.
- I also re-ordered the in/out transition rules for forward/reverse transitions so that the user always views some sort of animation/motion.
2011-09-28 09:14:52 -07:00
John Bender
ac0288a5ba
create getEncodedText helper and update custom select for use Fixes #2547
2011-09-27 15:19:35 -07:00
Mat Marquis
085a104005
Fixes #2538 — Button wasn’t getting the appropriate “has-count” class.
2011-09-27 16:47:11 -04:00
scottjehl
9b86fddf89
disabled touch overflow scrolling by default. overridable through $.mobile.touchOverflowEnabled.
2011-09-27 12:37:10 -04:00
scottjehl
47480d69f9
when touch overflow scrolling is supported and enabled, user scaling can create serious usability issues where it's difficult to get zoomed back out. This disables user scaling when that overflow scrolling is enabled (currently only projected for ios5 support)
2011-09-27 12:36:24 -04:00
Kin Blas
a975878fb4
Disabled the workaround for issue 785 (jQM text input forces use of iOS auto-correction) on iOS 5 devices since it appears to be fixed. This is still a problem on iOS 4.x and earlier.
...
- We don't have a specific test for iOS 5 so we use $.support.touchOverflow as an iOS 5 and later indicator. Yes, I feel dirty.
2011-09-26 11:39:30 -07:00
Kin Blas
6cd1e1b141
Fix for issue 2529 - Transition to the same page
...
- Added a new allowSamePageTransition option to the changePage() method default settings.
By default, we prevent changePage() requests when the fromPage and toPage are the same element, but folks that generate content manually/dynamically and reuse pages want to be able to transition to the same page. To allow
this, they will need to change the default value of allowSamePageTransition to true, *OR*, pass it in as an option when they manually call changePage().
It should be noted that our default transition animations assume that the formPage and toPage are different elements, so they may behave unexpectedly. It is up to the developer that turns on the allowSamePageTransitiona option
to either turn off transition animations, or make sure that an appropriate animation transition is used.
// To toggle the default behavior for all changePage() calls,
// set the default value of allowSamePageTransition to whatever
// you want it to be. The default is false.
$.mobile.changePage.defaults.allowSamePageTransition = true;
// To specify the behavior when manually calling changePage(),
// pass it as an option. If not specified, the default value
// specified by $.mobile.changepage.defaults.allowSamePageTransition
// is used.
$.mobile.changePage( "#reused-page", { allowSamePageTransition: true } );
2011-09-26 10:23:47 -07:00
gseguin
5bd72c7b96
Merge branch 'collapsible-redesign'
2011-09-24 22:12:22 -07:00
gseguin
276f27fbfa
Fixed missing top corner on collapsible set with only one collapsible
2011-09-24 21:58:04 -07:00
gseguin
3ecbf8e383
Simplified code. Don't add data-* attr if not set by user
2011-09-24 21:41:20 -07:00
gseguin
bdaa477f68
Fix for #1899
...
Added data-content-theme to style the content of the collapsible
data-theme and data-content-theme inherit collapsible-set's
2011-09-24 17:22:55 -07:00
scottjehl
e81e3b19c0
fixed positioning of selects in touch overflow scroll mode. Fixes #2415
2011-09-24 01:00:42 -04:00
scottjehl
23e79fb1db
better fix for the ios5 height issue with the bottom of the page.
2011-09-24 00:55:50 -04:00
scottjehl
52e1022697
adjusted the fallback heights. addresses the ios5 fixed footer alignment described in issue #2415
2011-09-24 00:33:44 -04:00
John Bender
aa679a9b0f
add inputs without a type to the text input list Fixes #2205
2011-09-23 20:44:48 -07:00
John Bender
3d88760019
whitespace in mobile forms textinput
2011-09-23 20:43:56 -07:00
John Bender
f029230e3a
handle all dialog closing cases
2011-09-23 16:32:56 -07:00
John Bender
eca88ea818
quick rename to addDependents
2011-09-23 16:32:56 -07:00
John Bender
e741bc2da6
force close logic of custom select to run when close is clicked, centralize the binding for pagehide.remove
2011-09-23 16:32:56 -07:00
John Bender
b837a49b32
add dependent tracking functions for jquery mobile objects
2011-09-23 16:32:56 -07:00
scottjehl
b2d023732a
Fixes #2490 where IE (and WP7) were not properly degrading form inputs via the degradeinputs plugin (and search inputs were not being styled as such)
2011-09-23 19:17:22 -04:00
Scott Jehl
adc1ecc2e6
Merge pull request #2519 from Wilto/master
...
Various and Sundry Fixes
2011-09-23 15:20:19 -07:00
Mat Marquis
ecc1361f7f
For the sake of jQuery’s serialize, submit inputs’ values are added to the form as a hidden input—this ensures it will only happen once, and that this logic only applies to submit inputs with a name attribute.
2011-09-23 18:10:03 -04:00
Mat Marquis
dec502d2c8
Prevents “undefined is null or not an object” error in IE, where .scrollTop() was being called before the body was ready.
2011-09-23 18:05:12 -04:00
Kin Blas
40570e294d
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-23 14:23:55 -07:00
Kin Blas
4f066b7e07
Fix for issue 2503 - User can't specify own error handling logic
...
- Added the following notifications to $.mobile.loadPage():
- pagebeforeload
- Triggered just before loadPage() attempts to dynamically load an external page.
- Developers can prevent the default loading behavior by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object passed within the data object (2nd arg to the event callback).
- pageload
- Triggered after an external page has been loaded and inserted into the document.
- pageloadfailed
- Triggered when the load of an external page fails.
- Developers can prevent the default behavior (error dialog display) by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object (2nd arg to the event callback).
2011-09-23 14:12:40 -07:00
toddparker
eaf5822c65
Restored button inline styling by defining inline as an option in the button markup plugin. Fixes #2496
...
The recent jqmData changes exposed this issue. Default for this option
is false.
2011-09-23 15:28:24 -04:00
scottjehl
be5136198e
when a form is submitting via post to a url that already has a page represented in the DOM, replace the current page with the response page of the same url (post params are not passed via q string, so the URLs are identical).
2011-09-23 09:28:43 -04:00
scottjehl
1badd4aa8e
enable touch overflow scrolling by default where supported
2011-09-22 21:31:03 -04:00
Kin Blas
4fa6ccdc0d
Fix for issue 2315 - Flip toggle switch with change event bound, triggers multiple times
...
- Modified refresh() so that it checks to see if the value actually changed before firing off the "change" event.
2011-09-22 16:23:43 -07:00
gseguin
114cee84fe
Merge remote branch 'upstream/master'
2011-10-05 15:14:39 -07:00
gseguin
27b51c47e9
Fixed $.jqmData() behavior to match $.fn.jqmData()
2011-10-05 15:12:11 -07:00
John Bender
e5e269394e
remove empty else in nav
2011-09-22 14:40:59 -07:00
Ghislain Seguin
2f8d1902a2
Merge pull request #2500 from eddiemonge/issue_2499
...
Issue 2499: Some php improvements
2011-09-22 10:43:03 -07:00
gseguin
fb06381176
Set content-theme to collapsible in a set only if it's not already set
2011-09-22 10:28:56 -07:00
gseguin
46e6c6b320
fixed data-content-theme in collapsible-set for collapsible expanded by default
2011-09-22 09:49:02 -07:00
John Bender
2086529728
remove extra local var storage
2011-09-22 08:53:53 -07:00
John Bender
f1d63f4f75
simplify calls to bind by wrapping this as a jquery object
2011-09-22 08:52:45 -07:00
John Bender
9d2b39dca6
whitespace in mobile init
2011-09-22 08:52:45 -07:00
John Bender
9182306ccf
refactor for clarity and simplicity
2011-09-22 08:52:45 -07:00
John Bender
27b228803a
change scroll recording to handle different scroll elements between page changes
2011-09-22 08:52:45 -07:00
John Bender
2f12ff249a
refactor setLastScroll to speed it up a tad
2011-09-22 08:52:09 -07:00
John Bender
3e143c8f66
rename getLastScroll and its variables
2011-09-22 08:52:09 -07:00
John Bender
c363864382
use scrolltop to store scroll position
...
scrolltop as a solution isn't that great but some browsers scroll to the top
of the page to where the element bearing the id matching the hash is located
*before* the hashchange event is fired meaning we don't have an opportunity
in the changepage event lifecycle to record the scrolling properly
2011-09-22 08:52:09 -07:00
Eddie Monge
5bfc08bba2
Issue 2499: Some php improvements
2011-09-21 23:19:37 -07:00
gseguin
4d33ec386b
Merge remote branch 'upstream/master' into collapsible-redesign
2011-09-21 22:26:36 -07:00
gseguin
e666552274
Added data-content-theme to collapsible and collapsible-set
2011-09-21 21:56:23 -07:00
Kin Blas
80b0e99798
Fix for issue 1243 - Can't link to dynamically created data-role="page"
...
- Modified loadPage() so that if the data-url lookup for a given page fails, that it look for the page via id (if it is an embedded page URL). This allows us to find dynamically injected pages that are un-enhanced and missing their data-url attributes.
2011-09-21 15:46:15 -07:00
scottjehl
3e2683fe18
Merge remote branch 'origin/master'
2011-09-21 14:59:27 -04:00
scottjehl
38d7ad8848
binding these at mobileinit didn't help anything, and only hurt the ability to use them when jQM is dynamically appended. Idea credit to @martynsmith
2011-09-21 14:59:19 -04:00
Kin Blas
9b0bf5252d
Removed deprecated "beforechangepage", "changepage", and "changepagefailed" event references in preparation for jQM 1.0 release.
...
Updated the unit tests to use "pagechange" event instead of "changepage".
2011-09-20 16:59:30 -07:00
Kin Blas
e7a33dbb45
Removed deprecated navigation related properties:
...
$.mobile.updateHash
$.mobile.urlstack
in preparation for jQM 1.0.
2011-09-20 16:15:44 -07:00
Kin Blas
14bafc510d
Removed support for the alpha signature of $.mobile.changePage() in preparation for jQM 1.0. Folks now how to use the signature that requires the toPage (url or element) as the first arg, and options object as the 2nd.
2011-09-20 15:40:52 -07:00
Kin Blas
dd458d1d4e
Removing the deprecated $.fixedToolbars property in preparation for jQM 1.0.
2011-09-20 15:28:07 -07:00
Kin Blas
58573f90d9
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-20 14:47:09 -07:00
Kin Blas
c75a7ad654
Fix for issue 1666 - Deprecate $.mobile.pageLoading()
...
- Removed $.mobile.pageLoading().
- Updated tests/unit/init/ to call the new showPageLoadingMsg/hidePageLoadingMsg functions.
2011-09-20 14:45:26 -07:00
scottjehl
5fe78d5148
updated jQuery to 1.6.4
2011-09-20 17:42:44 -04:00
scottjehl
41d4640344
moved the support test for event capture, allowing vmouse to run standalone on jQuery Core.
2011-09-20 17:26:36 -04:00
Hans-Peter Buniat
2051c49cc8
fixed typo (+ -> -) to fix #2416
2011-09-20 06:50:16 +02:00
Kin Blas
0fbea8f8e6
Fix for issue 2451:
...
Dialog not working if $.mobile.ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2451
related/dup bug 2202:
Dialog loads in new page with ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2202
- Modified the default click handler to check if the href is for an embedded page before bailing when ajaxEnabled = false. This allows us to navigate to internal/embedded pages/dialogs on the click versus waiting for the accidental hashchange that was the result of the browser's default handling of hash fragments.
2011-09-19 11:32:13 -07:00
Hans-Peter Buniat
df68b0188c
second attempt to fix #2416
2011-09-19 07:12:36 +02:00
Hans-Peter Buniat
afe6630425
try/catch the regexp, fixes 2416
2011-09-18 17:53:03 +02:00
gseguin
15667eee1b
Fix for issue #2455
...
Removed .jqmHasData()
2011-09-16 09:17:01 -07:00
gseguin
6dbdbfe4bc
Revert "Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev"
...
This reverts commit 43c5037bd8 .
2011-09-16 09:12:43 -07:00
gseguin
a0ca22ae3d
Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev
2011-09-16 09:12:25 -07:00
gseguin
43c5037bd8
Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev
2011-09-16 09:10:08 -07:00
Kin Blas
320c12126f
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-15 17:00:27 -07:00
Kin Blas
78234976e7
Fix for issue 2050 - URL handling and PlayBook Webworks app
...
- Modified the url parser regexp so that we can find the double slash that precedes the authority. This is necessary so we can reconstruct resource urls used on some devices like Rim's Playbook that use urls like:
location:/dir1/dir2/file.html
- Modified makeAbsoluteUrl() so that it uses the new doubleSlash property in the object returned from parseUrl() instead of assuming that it is ok to use a double slash.
2011-09-15 16:56:54 -07:00
gseguin
ec8e92453e
Removed buttonMarkup around +/- icon
2011-09-15 16:27:54 -07:00
gseguin
e4ff8fb539
Merge remote branch 'upstream/master'
2011-09-15 16:11:04 -07:00
gseguin
a908c5a6ef
Fix for issue #1361
...
Mixin individual properties to options instead of calling .jqmData()
2011-09-15 16:10:10 -07:00
John Bender
ae2e7f0dc4
add 'widgetinit' event for users to enhance widgets and markup post 'widgetcreate'
2011-09-15 15:15:14 -07:00
John Bender
15cb663e52
suggestion from @jblas to save a bit of execution
2011-09-15 10:45:27 -07:00
John Bender
416b666ca8
prevent clicks on anything but the left mouse button, also adds the which value to the events when its undefined in the vmouse plugin
2011-09-15 10:16:40 -07:00
gseguin
518894fc69
Merge branch 'issue-1899'
2011-09-14 16:22:16 -07:00
gseguin
e6eaf7cacd
Fix for #1899 :
...
Re-styled collapsible and collapsible set so the content of the collapsible now is applied the ui-btn-up-%%theme%% class. This way the border will match the border of the header button. In the meantime in the ui-collapsible-content class we remove the background image and tweak the margin/padding to make everything look good.
Combined the expand/collapse handlers into a single one and made extensive use of .toggleClass()
2011-09-14 16:02:47 -07:00
John Bender
1a385db664
prevent known hash change handling from firing from popstate hashchange Fixes #2444
2011-09-14 15:37:31 -07:00
gseguin
87ca47f162
Fix for issue #1899
...
Refactored some css classes
Fixed bottom corners in set with only one collapsible
2011-09-14 11:05:53 -07:00
Kin Blas
56a22727ab
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-13 00:23:33 -07:00
Kin Blas
1a92be0240
Fix for issue 2406 - Navigation from one page back to multi-page template
...
- Make sure that our hashchange resolves non-path hashes against the documentBase. This prevents the resulting changePath() call from incorrectly resolving against the URL for the current active (external) page.
- Fixed a problem in the push-state code. A hashchange event is *NOT* fired when navigating back (window.history.back()) from an external page to an internal page. This makes sense when you think about it since hashchange is only ever fired when the hash of the current document url changes, not when the document url itself changes. The fix was to make sure that the pushstate hashchange callback always sets a state object, even on embedded page URLs. This allows the hashchange callback to be triggered from within onPopState().
2011-09-13 00:23:03 -07:00
John Bender
f1fef48239
add open and close as noop for people who might be looping over their selects and to self document the methods for extension
2011-09-12 16:53:56 -07:00
John Bender
c426aefd76
add data attribute tag for pages loaded via ajax Fixes #2432
2011-09-12 14:06:47 -07:00
John Bender
fbd113bad4
whitespace in listview and core nav
2011-09-12 13:58:24 -07:00
John Bender
ee6027a196
prefer defined theme from prototype or data options Fixes #2423
2011-09-12 09:08:48 -07:00
John Bender
59fc26d25f
fix refresh bug for new options of the same number as before
2011-09-09 17:27:26 -07:00
Ghislain Seguin
2c55c93464
Merge pull request #2419 from zachleat/master
...
fieldcontain comment was copy pasted on links, nojs plugins.
2011-09-09 14:16:01 -07:00
zachleat
92151822b8
Incorrect comment text on the headers of two plugins.
2011-09-09 16:07:31 -05:00
scottjehl
2dadb4dbc4
Merge remote branch 'origin/master'
2011-09-09 12:28:17 -04:00
scottjehl
2369e2fa32
improved qualifications so that iOS5 gets the old-style fixed headers and footers when touchOverflow is disabled (which is the default).
2011-09-09 12:27:59 -04:00
John Bender
729757b465
create selectOptions method so the values stay current across dom changes Fixes #2410
2011-09-09 09:00:46 -07:00
gseguin
6f5a7d1266
Fix for issue #2404
...
Collapsible are collapsed by default
2011-09-08 13:34:58 -04:00
scottjehl
f49e69ef84
disabled iOS5 improvements by default. Can be enabled by binding to mobileinit and setting $.mobile.touchOverflowEnabled = true;
2011-09-08 13:26:33 -04:00
scottjehl
b645781f4d
implemented native overflow scrolling based on support for -[prefix]-overflow-scrolling: touch. True fixed headers and footers come supported as well.
2011-09-08 12:38:50 -04:00
scottjehl
bc036b91b0
Clock tap is busted, so this logic is here but commented-out
2011-09-08 12:38:50 -04:00
scottjehl
fda71670b4
reset scrollTop to 0, not defaultHomeScroll
2011-09-08 12:38:50 -04:00
scottjehl
1a524756f3
added a pre-transition class to set pages to display: block early and allow for their scrollTop and focus to be set before they are shown.
2011-09-08 12:38:50 -04:00
scottjehl
440be55f2b
changed the name of the overflow support test and class to touchOverflow / touch-overflow
2011-09-08 12:38:50 -04:00
scottjehl
dae560d67f
added support test & html class for overflow-scrolling-touch
2011-09-08 12:38:49 -04:00
scottjehl
2f63fdf3ec
Merge remote branch 'origin/master'
2011-09-08 12:32:27 -04:00
scottjehl
bf02fc880d
increased timeout that waits for a potential hashchange event to fire as a result of pop.
2011-09-08 12:31:59 -04:00
Kin Blas
fcbd4c3030
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-08 09:24:16 -07:00
Kin Blas
78041bc7c9
Added path.isFirstPageUrl() which is now called from loadPage() when trying to determine if the URL being loaded refers to a page that is already in the DOM. This will prevent us from duplicating the first-page in the main application document.
...
Also checking in the first example of how to use the pagebeforechange notification to allow for dynamically updating and re-using a page that is already in the DOM.
2011-09-08 09:21:31 -07:00
scottjehl
db3dbc04d2
Merge remote branch 'origin/master'
2011-09-08 11:59:43 -04:00
scottjehl
7be8311d4e
added location.search to the original page data-url
2011-09-08 11:58:55 -04:00
Kin Blas
04623c21cf
Merge branch 'master' into changepage-prevent
2011-09-07 18:07:21 -07:00
Kin Blas
6aa8c8f3b0
- Added "fromPage" option to changePage(). This used to be in there before the navigation re-work, I just added it back in.
...
- Added "dataUrl" option to changePage(). This allows a caller to specify a page element to change to, but specify an alternate URL for location display purposes. This is useful for dynamic applications that re-use and over-write existing page content to avoid overwhelming the DOM.
- Renamed the "beforechangepage" and "changepage" events to "pagebeforechange" and "pagechange" respectively. This was done to match the page widget naming of its notifications. Left the triggers for the old events in place but with DEPRECATED comments.
- Renamed the properties of the data object passed to the page events.
2011-09-07 18:03:38 -07:00
dtao
fa4d9c16d7
fixed typo: 'throttledResize' => 'throttledresize'
2011-09-07 10:09:00 -04:00
Kin Blas
abb812cc01
Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
...
jquery.mobile.vmouse.js:
- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.
- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.
- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the original mouse event.
jquery.mobile.event.js
- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.
- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.
- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-07 10:09:00 -04:00
Kin Blas
5333ab7bf7
I noticed that the code in the mouseup for the toggle switch was using a CSS3 transition, but calling the animationComplete() function which waits for an animationend event which will never come. This means we bind a new animationComplete() handler every time the toggle switch is clicked.
...
I removed the binding for the handler completely since it doesn't hurt to just leave the transition in place. I also removed the code that was setting the position of the slider since it really should only be set within the mouseup if the user did not change the switch setting (toggle).
2011-09-07 10:09:00 -04:00
Kin Blas
81c3957129
Fix for issue 1925 - Single tap triggers two actions, especially in android B1
...
- Trigger the list item and keyboard return/space key up to the "click" event instead of "vclick". This delays the dismissal of the custom select menu until the click event, thereby avoiding the case where the menu disappears before the browser dispatches it's synthesized mouse events (in the touch case) with a target of whatever element was underneath the menu.
2011-09-07 10:09:00 -04:00
scottjehl
d68d5064bc
finished last-scroll remembering implementation across pages in the history stack (regardless of whether they've been removed from the DOM since last appearance).
2011-09-07 08:15:00 -04:00
Kin Blas
701b381cc4
Couple of modifications to changePage():
...
- Moved the setting of isPageTransitioning *AFTER* the beforechangepage notification.
- Modified the trigger("beforechangepage") call to pass the args to changePage() as an object since trigger only expects one data arg.
2011-09-06 16:56:20 -07:00
scottjehl
0d98b8fad6
changed setting of lastScroll
2011-09-06 14:29:19 -04:00
scottjehl
97539ed3bd
focus on title or page div
2011-09-06 12:58:14 -04:00
scottjehl
ebafc02cfe
add tabindex to page element
2011-09-06 12:58:14 -04:00
scottjehl
003505a4b9
changed minscroll to 250, better organization of lastscroll
2011-09-06 12:56:46 -04:00
scottjehl
ac67e92cbb
This change sets the "lastScroll" property to each urlHistory item object, allowing us to remember previous scroll distances when returning to a page that has since been removed from the DOM. Before this change, this number was stored in data on the page element, so it is lost when the page is removed after pagehide.
...
Also, this change removes a reference in memory that we were keeping to the $activeClickedLink on each page. We stored this in attempt to refocus a link after returning to a page. Unfortunately, it doesn't seem that this data can be retained after pages are removed from the DOM, outside of somehow remembering a unique selector string to reach that element again (which could be achieved by adding some overhead, ala http://stackoverflow.com/questions/2068272/getting-a-jquery-selector-for-an-element )
2011-09-06 12:56:46 -04:00
scottjehl
522b48ee84
started on the change to allow default prevention on beforechangepage
2011-09-05 13:05:57 -04:00
gseguin
001e588c92
Fix for issue #2017 . Clear active link on vclick so there can be only one active link at a time.
2011-08-31 21:46:39 -07:00
gseguin
e28ad6d95d
re-added setting of $.mobile.activeBtnClass on selected option but only for single select lists
2011-08-31 13:33:52 -07:00
gseguin
4cb52c4908
set aria-selected on li element when li is selected
2011-08-31 11:16:11 -07:00
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