Commit graph

73 commits

Author SHA1 Message Date
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
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
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
scottjehl
a138877864 removed broad rule for rounding corners of thumbnail images in first and last slots of listviews. Now this only happens for inset listviews. Fixes #362 2010-11-03 22:26:09 -04:00
Alexander Dimitrov
1858844105 this keyword gets overwritten by jQuery.each 2010-10-26 22:53:28 +08:00
Karan Bhangui
f78d110339 fixed aside elements being displayed multiple times per list item 2010-10-26 22:53:11 +08:00
scottjehl
6f5ce29175 typo 2010-10-23 17:16:49 -04:00
scottjehl
fe468ccc9e used click in place of tap 2010-10-22 18:59:42 -04:00
scottjehl
cf700ecfc1 e vs event. Fixed. 2010-10-22 18:59:14 -04:00
hochi
dfaeae34bd fixed is() selector 2010-10-23 04:30:10 +08:00
John Resig
a5b4fdbaaa Fix typos. 2010-10-22 14:33:10 -04:00
John Resig
a8f8beaf74 Minor formatting and performance tweaks to the page plugin. 2010-10-22 14:31:24 -04:00
John Resig
87106e4e61 Make sure that listview classes are only set per row. 2010-10-22 11:48:54 -04:00
John Resig
683d73243c Reduced number of calls to addClass. 2010-10-21 18:36:17 -04:00
John Resig
f91b2523ff Merge clickable into buttonMarkup. Improve performance of the Button Markup plugin. 2010-10-21 17:18:59 -04:00
John Resig
1128ff16ca Rewrote some of the logic for numbering items and creating sub-pages. 2010-10-21 14:56:10 -04:00
John Resig
9a38d8a0d1 Rewrite of listview logic for performance. 2010-10-21 14:07:28 -04:00
scottjehl
afcf8fb0e8 made sure the inner corners on listview buttons are rounded. 2010-10-21 09:34:29 -04:00
scottjehl
ebfcc40e39 if a nested list is created on a page that contains a persistent footer, that footer should persist across all generated sub-pages. Fixes #247 2010-10-20 17:46:16 -04:00
scottjehl
2c17000bfc fixed up rounded corners on inset lists 2010-10-20 14:16:34 -04:00
scottjehl
62f0754c6b removed console log 2010-10-20 14:08:01 -04:00
scottjehl
a0b814e26a moved appends over to use $.pageContainer 2010-10-20 12:09:03 -04:00
jzaefferer
6651fcf016 Listview: Replace live tap event handler with delegate. 2010-10-20 16:21:05 +02:00