Ghislain Seguin
4255f5752f
Fix for issue #1654
2011-05-18 23:46:46 -07:00
gnikibog
1b49245489
Missing space in generated page markup
2011-05-18 07:02:06 -07: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
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
scottjehl
f241a858b5
fixed ordered lists in readonly OL listviews. Fixes #1144
2011-03-31 17:24:09 -04:00
scottjehl
19400af5f6
removed navigation-specific list keyboard handling and ARIA out of listview and over to select, which is the only place it's used. Lists are also now much friendlier to readonly markup - so forms and all of the formatted content previously supported in navigation-based listviews now work without an anchor wrapper.
2011-03-31 17:06:20 -04:00
jblas@adobe.com
729cda075a
Merge branch 'master' into fastclick
...
Resolved Conflicts:
js/jquery.mobile.buttonMarkup.js
js/jquery.mobile.event.js
js/jquery.mobile.forms.checkboxradio.js
js/jquery.mobile.forms.select.js
js/jquery.mobile.listview.js
2011-03-27 21:00:22 -07:00
scottjehl
b0eb2bd053
Fixed up nested listviews so that any markup that comes before the child list will be used for complex formatting in the list item node. Text nodes that are direct children of the LI still work fine as well. Fixes #585
2011-03-27 16:18:24 -04:00
scottjehl
368b875a02
delegated clicks on anchors don't seem to cause the same visual problems in WinMo7 that they did when click events were bound to LIs. Removing workaround then!
2011-03-27 01:59:36 -04:00
scottjehl
b2f4f06f7d
make sure inner button gets corner rounding as well in listviews. Fixes a regression from earlier.
2011-03-27 01:14:46 -04:00
scottjehl
a0ebb5223b
find first image child of LI or of firstchild anchor
2011-03-26 23:46:47 -04:00
scottjehl
6cd2e9164a
removed delegated LI click handling. Native anchors will provide
2011-03-26 21:29:24 -04:00
scottjehl
84b55548d3
more updates to the listview markup, styles and scripts to allow wrapped anchors
2011-03-26 21:29:24 -04:00
scottjehl
72fe3a2c21
initial markup changes
2011-03-26 21:29:24 -04:00
John Bender
4fe0b29a0f
Merge branch 'data-namespacing'
2011-03-25 18:46:00 -07:00
scottjehl
7503f62a10
changed our two new custom data helper names to jqmData() and :jqmData()
2011-03-25 17:50:40 -04:00
scottjehl
4fa2032789
quick fix to listview image selector to grab the first img of each LI, not the whole list.
2011-03-24 15:41:43 -04:00
Felipe Brahm
c25829a8a2
Bug fix: only apply thumb style if img tag is on the first level. This fixes the problem when you want multiple images on each li element, like a 5 star rating for each element for example. Now to add multiple images you just have to put them in a div.
2011-03-25 03:39:02 +08:00
Kin Blas
db89e1f24d
Switch find/filter selector calls over to using the new :jqdata() pseudo selector.
2011-03-22 13:31:17 -07:00
John Bender
63e8f6bfcb
resolved merge conflicts and fixed 2 tests
2011-03-15 23:57:17 -07:00
Kin Blas
dbcf4d0373
Merge branch 'master' into fastclick
2011-03-14 11:38:00 -07:00
scottjehl
d3a170db09
moved the IE test to support.js, added a workaround to the listview refresh method to prevent default on mousedown, which makes the tap highlight color look right in Windows Phone 7. Without this workaround, it still works fine, but the entire listview is highlighted when an LI is clicked.
2011-03-14 00:20:25 -04:00
scottjehl
ea60207c1b
changed custom data method to $.fn.mobileData() and updated plugins that use it.
2011-03-09 23:27:21 -05:00
scottjehl
9e91fa6752
updated docs with jq namespace, found some more stragglers
2011-03-09 21:03:40 -05:00
scottjehl
ce34ece257
namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS
2011-03-09 20:47:44 -05:00
Kin Blas
c063e1ce65
Changed "click" bindings to "vclick" for listview and anchors.
2011-02-18 12:40:30 -08:00
unknown
ee1a8c1977
listview thumb styling via listview('refresh'). Fixes 947
2011-02-16 22:25:37 -08:00
scottjehl
16c743ac39
In android 2.1 and 1.6, the split button anchor needed to be a sibling of the overall row button div in the LI. It seems this may be due to the event handlers bound to the div button, but I'm not entirely sure that's it. Either way, this workaround is straightforward and does not introduce issues in other browsers, so aside from the additional overhead involved in re-appending the links to the LIs, this fix is good to go. Fixes #874
2011-02-03 02:57:59 -05:00
chrisvire
d3376b7b5c
Allow for data-theme attribute on list item
2011-02-01 14:03:36 +08:00
scottjehl
da1c615c8a
inset listviews with a single item will get appropriate visual treatment. Fixes #469
2011-02-01 00:37:24 -05:00
scottjehl
37f9680c0f
only the first image should be an icon/thumb. Fixes #699
2011-01-21 15:33:40 -05:00
scottjehl
52f86f2f9a
make sure first textnode of li is used in listview title, regardless of newline chars. Test included. Fixes #715
2011-01-20 17:48:44 -05:00
scottjehl
fd821b7440
Merge branch 'select_multi' of https://github.com/ehynds/jquery-mobile into ehynds-select_multi
2010-12-22 10:05:40 -05:00
jzaefferer
e70c17d625
Extend nested listviews to accept more then just the title in parent list item. Currently requires predefined anchor to be present, based on discussion in ticket. Extended lists-nested.html to test both variants. Fixes #253 - only text nodes allowed in nested listview
2010-12-15 15:54:13 +01:00
ehynds
8eb553f884
multiple select functionality
2010-12-07 15:45:20 -05:00
scottjehl
80d56e655b
Changed page navigation scripting to use data-url attributes instead of IDs for storing page URLs. This fixes a number of issues, most importantly #477 , which exposed a conflict between jQuery's selector engine that would result in un-enhanced pages whenever linking between two pages in the same directory.
...
The shift away from interal ID attribute usage also allows users to bind page events (pagecreate, pagebeforecreate) to a page div by its ID, which was a frequent cause of confusion when it didn't work as expected in former versions of the framework.
Seemingly unrelated: these commits allow you to specify data-role="dialog" in multipage and single page templates. In multipage templates, the role must be on the page (a link with data-rel alone will not work in multi-page). This addresses issue number 464, but may need further testing for obscure scenarios.
Fixes #477 (Pages are not enhanced when linking to a filename without a path)
Fixes #493 (Click the same link twice -> blank page)
Fixes #513 (closing dialog + returning to the same dialog)
Fixes #550 (changePage() not updating hash for internal pages - breaks )
Fixes #464 (Dialogs don't work within multi-pages)
Fixes #633 (Recent change to prevent same-page requests breaks select menu close button)
Fixes #599 (Page ids & page specific events)
Fixes #634 (After a bad page request, base url is not reset to current path)
booya.
2010-12-07 12:05:10 -05:00
scottjehl
9423bc199d
fixed issue with listview corner rounding when listviews have only a couple items.
2010-12-01 16:35:17 -05:00
scottjehl
d56380fc22
refactor of jquery.mobile.core.js. Moved all of the page navigation model related scripting into jquery.mobile.navigation.js. This includes event handling for click, submit, and hashchange, all of the base tag management, path management, active link class handling, etc. All existing core tests are passing, and all demos work as expected. More tests are needed in core, and this refactor should make those tests easier to write.
2010-11-25 06:13:51 -05:00
scottjehl
a0596434bc
moved the ID creation string escape function from core to listview. No other plugins use it.
2010-11-19 23:21:16 -05:00
scottjehl
93179f9a3d
updated comment about license to match other jQuery projects - MIT "or" GPL
2010-11-19 22:47:47 -05:00
scottjehl
d1c839613d
made sure corners are removed on list items that used to be first or last when new items are appended. Fixes #400
2010-11-19 21:07:34 -05:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
d03f3c6a33
nested lists were getting way small. This made em stop.
2010-11-10 23:50:14 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05:00
scottjehl
0aa7fe6454
fixed listview splitbutton theming
2010-11-05 15:08:21 -04:00
scottjehl
a0815daf48
Fixed a few listview split button regressions. Fixes #387
2010-11-05 00:06:39 -04:00