Commit graph

135 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
John Bender
50acf2eb7c fix to use options defined on page widget to determing domCache settings 2011-07-29 12:55:40 -07:00
John Bender
27b4ba1691 ajaxDomCaching -> domCache 2011-07-29 10:10:26 -07:00
John Bender
180243e9ad added a todo for the subpage tracking 2011-07-29 10:10:26 -07:00
John Bender
85114be097 use childPages method to abstract method for finding child pages, hopefully we can find something better than the url selector 2011-07-29 10:10:25 -07:00
John Bender
3035387446 first test for nested page removal/caching 2011-07-29 10:10:25 -07:00
John Bender
d716f3e9e7 moved dom cache check above the enhance to let widgets unbind parent page hide behaviour. added parent removal to listview special remove 2011-07-29 10:10:25 -07:00
John Bender
57a1e9abf7 whitespace and log statement in listview 2011-07-29 10:10:25 -07:00
scottjehl
115f1710b1 remove entire list when parent page is hidden and next page is not a sub list. Note: the unbind of the "pagehide.remove" does not appear to be preventing the parent page from removal, and it regenerates its sublists when revisiting that parent, since it was removed. 2011-07-29 10:10:25 -07:00
Ghislain Seguin
29c408f32a Merge remote-tracking branch 'upstream/master' 2011-07-28 15:25:10 -07:00
scottjehl
263193f490 Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable. 2011-07-27 18:42:16 -04:00
Ghislain Seguin
6ff9d9a06a Coding standards 2011-07-27 11:22:13 -07:00
scottjehl
e07c40e3d0 exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector" 2011-07-26 14:22:08 -04:00
scottjehl
fdb77bfa52 changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions 2011-07-22 09:05:55 -04:00
scottjehl
64e6ef0e72 bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance". 2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9 This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.

- Unit tests have been added and adjusted to support some internal changes involved in this commit.

- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.

- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.

- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
scottjehl
e567742c90 fixed up logic and code style for the _removeCorners "which" argument. Thx for the logic suggestion, @eugenb1. Fixes #1996. 2011-07-10 18:07:12 -04:00
Rick Waldron
e42ab139b3 jQuery core style guide conformance: jquery.mobile.listview.js-2, revert 2011-06-29 09:19:19 -04:00
Rick Waldron
96ea959e44 jQuery core style guide conformance: jquery.mobile.listview.js-2 2011-06-29 09:03:49 -04:00
Ghislain Seguin
453d9985cf Coding standards and linting 2011-06-28 23:15:12 -07:00
Ghislain Seguin
31bd038d74 Merge remote-tracking branch 'upstream/master' into issue-1470
Conflicts:
	tests/unit/listview/index.html
	tests/unit/listview/listview_core.js
2011-06-20 12:51:40 -07:00
Ghislain Seguin
f32fe66bf7 Merge remote-tracking branch 'upstream/master' into issue-1470
Conflicts:
	tests/unit/listview/listview_core.js
2011-06-17 10:46:52 -07:00
Kin Blas
525543b06d Merge pull request #1662 from gseguin/issue-1654
Issue 1654
2011-06-17 09:41:22 -07:00
Ghislain Seguin
ff8517c915 Merge remote-tracking branch 'upstream/master' into issue-1654
Conflicts:
	tests/unit/listview/listview_core.js
2011-06-17 09:37:36 -07:00
Scott Jehl
0cff6336bd Merge pull request #1489 from bernharduw/master
Radio buttons in nested listviews don't work. Fixes #1486
2011-06-16 22:41:16 -07:00
scottjehl
fd738c5b04 Modified the listview thumbail-finding logic to specifically find first children of the li or the primary button's inner anchor element. Fixes #1794. Fixes #1458 2011-06-17 00:21:11 -04:00
Ghislain Seguin
9d3862c825 Whitespace change 2011-06-03 19:02:13 -07:00
Ghislain Seguin
3ee2585cba Fix for issue #1617: Nested lists with same parent text resolve to the same sub-page. 2011-06-03 10:55:04 -07:00
Ghislain Seguin
4255f5752f Fix for issue #1654 2011-05-18 23:46:46 -07:00
Ghislain Seguin
bd068616c6 Fix for #1470
Corner styling issue with listview refresh on growing lists
2011-05-18 16:07:18 -07:00
gnikibog
1b49245489 Missing space in generated page markup 2011-05-18 07:02:06 -07:00
Bernhard Gschwantner
6da11e97b0 CHG: refinement as proposed by scottjehl 2011-04-28 22:09:02 +02:00
eddiemonge
279d71828a left a test piece of code in previously 2011-04-21 14:40:58 -07:00
eddiemonge
d7bab1f9a5 micro-optimizations and styling changes to listview.js 2011-04-21 14:33:49 -07:00
Bernhard Gschwantner
b2ff26b579 FIX: Problems with forms in nested listviews 2011-04-20 15:12:54 +02:00
Kin Blas
8c71ee5dff Fix for issue 1458 - Listview thumbnails aren't rendering correctly.
Needed to modify _itemApply() to look for the first image that is the first child of its parent. I may need to tweak this at a later point because the selector is still too general.
2011-04-14 23:36:58 -07:00
Kin Blas
212f9ed237 Modified _createSubPages() to reduce the number of property lookups and function calls per iteration. 2011-04-12 14:33:20 -07:00
Kin Blas
98dc036ff0 Fix for Issue 1424 - Adding items to listviews on a4.1 is too slow
- Some optimizations to speed things up:
	- Modified _itemApply() to make use of item.children() and filters. Also got rid of some unused code.
	- Convert .each() in refresh() to a loop.
	- Cache some $list.jqmData() values so we don't do it for each list item.
2011-04-12 13:51:27 -07:00
scottjehl
4839d82e54 removed class we weren't using 2011-03-31 17:31:16 -04:00