Commit graph

62 commits

Author SHA1 Message Date
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
jzaefferer
962d5a137b Listview: Finishing up refresh refactoring. Fixes #249 2010-10-20 15:55:05 +02:00
jzaefferer
1cbdc76d08 Listview: Code cleanup and refactoring, introducing refresh method. Partial fix for #249 2010-10-20 06:28:35 +02:00
scottjehl
af9508481c Removed correct side of rounded corners on buttons in listviews that either precede or follow dividers.
Note that this will also make sure there's no bottom corners on a button that predes a divider that comes last, if that ever happens. Fixes #139
2010-10-13 20:16:50 -04:00
scottjehl
7470e376ad changed to trigger click instead of ajaxClick. This should help the whole "clicks getting eaten" issue a bit. 2010-10-13 16:08:41 -04:00
scottjehl
52113e8b97 fixed up list count bubbles in split button listviews. Fixes #165 2010-10-12 17:37:43 -04:00
scottjehl
a35cd511bd fixed default split button icons 2010-10-12 17:24:39 -04:00
scottjehl
759adbf675 missed a comma 2010-10-12 16:35:31 -04:00
scottjehl
2521dc2ffb implemented setting of theme and icon for split buttons at the list and link level. 2010-10-12 16:29:16 -04:00
scottjehl
4278d61c96 changed body to bar in list divider theming. Fixes #163 2010-10-12 15:10:17 -04:00
scottjehl
c59dafd616 added support for icon, in addition to thumb, image sizes. Fixes #146 2010-10-12 15:09:42 -04:00
scottjehl
0a7a9d8721 added support for data-counttheme attr 2010-10-12 13:40:06 -04:00