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