Jeffrey Way
aa4ff18e22
Small improvement to keep from querying the DOM more than once for the data-role=pages elements.
2010-10-29 02:21:24 +08:00
scottjehl
2e86ed1425
added support for enable and disable methods
2010-10-27 23:11:36 -04:00
scottjehl
7d03d097bf
rewrote checkboxradio to use widget factory. renamed method checkboxradio and updated page plugin to match
2010-10-27 22:38:02 -04:00
scottjehl
c242604ec0
rewrote navbar with widget factory
2010-10-27 21:58:00 -04:00
scottjehl
c8d29fb6b2
added check to make sure active link isn't in the new activepage (such as when it's appended to the new page for persistence), before removing class
2010-10-27 21:57:37 -04:00
scottjehl
e202a72776
converted customButton plugin to widget factory (note: this is just the plugin for native button elements, not to be confused with the buttonMarkup plugin).
...
renamed method to "button" and updated page.js to match
2010-10-27 20:43:27 -04:00
scottjehl
77b1c3a758
moved line where # is removed to prevent base url prefixing on local anchor links
2010-10-27 16:56:03 -04:00
scottjehl
4c2a9591dc
moved active class removal code into function - now called after ajax error as well as successful page change
2010-10-27 16:52:53 -04:00
scottjehl
096467e4eb
made sure local # urls go through the regular page nav path, and only update the hash on success
2010-10-27 16:46:51 -04:00
scottjehl
d42aace51c
removed a few chars from condition. Thx @jeffreyway for suggestions on the last few commits.
2010-10-27 16:27:10 -04:00
scottjehl
d26877fc22
used cached version of $this
2010-10-27 16:22:40 -04:00
scottjehl
f84daa9cd3
removed nullLink var
2010-10-27 16:21:27 -04:00
scottjehl
86f2d1f90a
updated regexp to test for protocol or # at beginning of url.
2010-10-27 16:13:11 -04:00
scottjehl
07108b8809
simplified attr get/check
2010-10-27 15:00:56 -04:00
scottjehl
e709a37514
commented-out the call to _numberItems, as it doesn't yet exist in the listview rewrite
2010-10-27 12:19:24 -04:00
scottjehl
d299bfb087
moved append to before the buttonMarkup call, to make theming work as expected
2010-10-27 12:19:01 -04:00
scottjehl
1c79129dd6
removed title attr, as aria role handling seems to be descriptive enough
2010-10-27 09:49:45 -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
a382295724
removed a console.log
2010-10-25 11:06:43 -04:00
scottjehl
f12872c783
add/remove active class on clicked link.
2010-10-25 11:06:20 -04:00
scottjehl
4d3020d414
added px suffix to all media-min/max classes. Updated CSS usage to match.
2010-10-25 10:45:30 -04:00
scottjehl
a601db164d
fixed typo in where the blank space was added.
2010-10-25 10:31:36 -04:00
scottjehl
13db7886df
made sure empty min/max breakpoint classes aren't added
2010-10-24 09:43:34 -04:00
scottjehl
d7d43db120
made default breakpoints non-overrideable and exposed function $.mobile.addResolutionBreakpoints (accepts number or array of numbers) which can be used to add widths to be used in min/max media classes on HTML element.
2010-10-24 09:39:21 -04:00
scottjehl
0dcb2f2971
whitespace
2010-10-24 09:13:33 -04:00
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
538a56caf6
Used triggerHandler instead of trigger to allow collapsibles to be embedded. Fixes #255
2010-10-23 08:57:54 -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
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