scottjehl
e736caebfe
Removed the ajaxClick function and moved its logic into the live click event handler, where it is now refactored and simplified. Thx to Jeffrey Way for ideas that went into this refactor.
...
Also, clicks that are triggered on anchors will now be able to make a new http request, which improves listview behavior when clicking LIs that resolve to external urls.
Included in commit is a new demo/test page with various link types to make sure they behave as expected.
Fixes #272 , Fixes #264
2010-10-23 17:24:06 -04:00
scottjehl
6f5ce29175
typo
2010-10-23 17:16:49 -04:00
scottjehl
25c2ce5ce6
added support for grouped collapsibles that make accordions. Parent element just needs a data-role of collapsible-set. Fixes #87 , Fixes #178
2010-10-23 10:20:06 -04:00
scottjehl
ceca38b8e0
fixed css references in markup
2010-10-23 09:01:31 -04:00
scottjehl
538a56caf6
Used triggerHandler instead of trigger to allow collapsibles to be embedded. Fixes #255
2010-10-23 08:57:54 -04:00
scottjehl
b2f791a5ef
fixed icon positioning.
2010-10-22 19:05:13 -04:00
scottjehl
f32d9dddc1
click instead of tap
2010-10-22 19:00:22 -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
scottjehl
521b8e5eb7
moved the base tag check call to within the support extend.
2010-10-22 16:45:47 -04:00
scottjehl
e58c833f8c
used indexOf instead of match.
2010-10-22 16:41:56 -04:00
hochi
dfaeae34bd
fixed is() selector
2010-10-23 04:30:10 +08:00
scottjehl
6d54740f41
set max-width breakpoint classes as well.
2010-10-22 14:46:27 -04:00
scottjehl
f806fc07d7
updated css to use min-width classes in place of media queries
2010-10-22 14:46:27 -04:00
scottjehl
38eb8aecc7
added - to prefix
2010-10-22 14:46:27 -04:00
scottjehl
e0f9c24b94
should have been minwidth prefixes, and now adding all that apply, rather than just the greatest.
2010-10-22 14:46:26 -04:00
John Resig
a5b4fdbaaa
Fix typos.
2010-10-22 14:33:10 -04:00
John Resig
4f9d2e8ac8
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-22 14:31:31 -04:00
John Resig
a8f8beaf74
Minor formatting and performance tweaks to the page plugin.
2010-10-22 14:31:24 -04:00
scottjehl
732b66057a
resize and orientationchange now auto-add maxwidth classes to HTML element for common width breakpoints (defaults: 320,480,768,1024), which can be used in css targeting in place of media queries (for shorthand, and more importantly, to support IE, which may be opted-in to A support).
2010-10-22 13:58:08 -04:00
John Resig
d55fce4a47
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-22 12:42:33 -04:00
John Resig
62623ca68e
Made a bunch of tweaks to checkbox/radio.
2010-10-22 12:42:24 -04:00
scottjehl
70bba7064a
Added a support test $.support.dynamicBaseTag and workaround for browsers that don't support dynamically updating BASE tag (Firefox is the only one I've seen so far. In those browsers, when a new page is fetched, any elements with href and src attributes will have their attribute prefixed with a proper base url (if they don't already start with an external site http address, "/", "#", or any protocol such as "mailto:, etc).
...
In the process, the BASE element and related functions are only implemented if that support is true, and BASE urls now use a full URL path when set, to avoid issues with browsers that may need that.
Fixes #263 , Fixes #221
2010-10-22 12:31:25 -04:00
John Resig
8208b6b986
Minor tweaks to page formatting.
2010-10-22 12:22:57 -04:00
John Resig
a07bcbaa8b
Minor tweaks to page logic.
2010-10-22 12:17:14 -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
c8b5728c21
Fix issues with button rendering.
2010-10-22 11:39:26 -04:00
John Resig
170b02d795
Pull in updated version of jQuery.
2010-10-22 11:38:07 -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
scottjehl
21a7b0a2ba
updated to reflect new changes in pageChange function and dialog behavior
2010-10-21 17:02:59 -04:00
scottjehl
e71cb716a2
Merge branch 'master' of github.com:jquery/jquery-mobile
...
Conflicts:
js/jquery.mobile.js
2010-10-21 16:47:32 -04:00
scottjehl
ef3fd116dc
refactored to use widget factory and not be tracked via hash/history. Fixes #176
2010-10-21 16:29:05 -04:00
scottjehl
5ad3d04084
several changes that allow for changing pages without hash changes:
...
- allowed prevention of hash listening during a particular hash change
- allowed $.activePage to remain set on previous page when an untracked page is open (return pageshow event false to use this feature)
- moved setting and resetting to base urls and made sure they update at the right moment for both new pages and those previously visited.
- changePage now accepts an array as first argument, allowing you to specify both [from,to] pages, whereas non-array types would refer to the "to" page, assuming "from" should be the currently viewed page
- error requests never generate a hash change now
- edited the ajax error to appear in the right location when scrolled
Essentially, plugins can now create page changes that are not tracked in history, which is a dialog critical bug.
2010-10-21 16:28:17 -04:00
scottjehl
6f90c3aa17
changed to use click event.
2010-10-21 15:59:44 -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
89a5f47065
Updated some queries to make sure more of them hit querySelectorAll/matchesSelector.
2010-10-21 14:30:42 -04:00
John Resig
9a38d8a0d1
Rewrite of listview logic for performance.
2010-10-21 14:07:28 -04:00
scottjehl
06e6ceb519
moved $activePage to $.activePage, so it's exposed for external plugins
2010-10-21 14:04:47 -04:00
scottjehl
b8cf201a88
ajaxClick only updates the hash if the clicked element doesn't match the new unHashedSelectors var. So far, this only includes [data-rel=dialog]
2010-10-21 13:16:48 -04:00
scottjehl
cb13c2f84a
updated to use new changePage function, which no longer has a "from" arg
2010-10-21 13:12:25 -04:00
scottjehl
0d8956cf0c
big refactor of hashchange event handler - moved logic over to changePage function.
2010-10-21 13:11:46 -04:00
John Resig
bd541ce267
Move the UL test into the speed directory.
2010-10-21 11:29:17 -04:00
scottjehl
afcf8fb0e8
made sure the inner corners on listview buttons are rounded.
2010-10-21 09:34:29 -04:00
wuyuntao
2337fddea9
Fix some css issue
2010-10-21 21:23:54 +08:00
Jeffrey Way
ef72ae4ddf
Fixed iPad button positioning bug
2010-10-21 21:20:14 +08:00
Todd Parker
504b3f4b0e
set theme to "d" to see if gradients are the issue.
2010-10-20 21:39:42 -04:00
Todd Parker
f317f398d9
Added a 400 item list to test device performance.
2010-10-20 21:34:30 -04:00
scottjehl
2f38d99d45
moving the slider handle triggers change event on the input or select.
2010-10-20 19:08:56 -04:00
scottjehl
b15b9153a4
changed ajax response injection to avoid filtering-out script elements that are included in the page div. Fixes #145
2010-10-20 18:32:00 -04:00