Commit graph

1752 commits

Author SHA1 Message Date
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
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
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
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
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