scottjehl
14ecf6f0da
just comments
2010-10-15 20:37:30 -04:00
scottjehl
7c7fffabcf
removed the "MORE" nav functionality - too buggy. Maybe later. or not.
2010-10-15 20:07:52 -04:00
scottjehl
193a400476
changed logic for auto-adding back btns. Hoping this Fixes #143
2010-10-15 18:25:54 -04:00
scottjehl
f5468482f8
fixed up theme inheritance
2010-10-15 16:40:06 -04:00
scottjehl
dd2f2a2672
fixed issue with configuring a solo right button in a header.
2010-10-15 16:19:55 -04:00
scottjehl
f35bd06b75
removed a call to hide browser chrome
2010-10-15 15:57:37 -04:00
scottjehl
ad5470e29c
loosened the scope for ui-links.
2010-10-15 15:55:46 -04:00
scottjehl
6b86edb327
removed transition names that won't be in alpha
2010-10-15 15:47:45 -04:00
scottjehl
0bee3fc585
made fixed headers an opt-in, until we can work the bugs out
2010-10-15 14:58:08 -04:00
scottjehl
53b3d6828b
added the other transitions from jQtouch.
2010-10-15 13:37:49 -04:00
scottjehl
26bbb233b8
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-15 12:18:54 -04:00
scottjehl
5679fc7d2b
hopefully improved scroll-to-top vs. loader positioning
2010-10-15 11:34:33 -04:00
John Resig
ba50fe094f
Add in jQuery 1.4.3.
2010-10-15 11:10:27 -04:00
John Resig
d1d3d5c2d2
Add in jQuery 1.4.3.
2010-10-15 11:04:32 -04:00
scottjehl
00bd6ac7da
set top of loader to scrollTop+75
2010-10-15 10:46:58 -04:00
scottjehl
a4e9594857
no more body theme - just ui-br
2010-10-15 10:36:43 -04:00
jeresig
c91b00fb09
Mobile Ajaxform plugin isn't going into the alpha release.
2010-10-14 20:46:46 -04:00
John Resig
de17e335ef
char is not valid
2010-10-14 17:37:18 -04:00
John Resig
9f0cd7a104
Make some tweaks to the loading error dialog.
2010-10-14 15:37:35 -04:00
John Resig
92327e899f
Make sure that the page loading error message is displayed correctly and the back button still works properly.
2010-10-14 15:31:50 -04:00
John Resig
5680234fce
Handle pages that aren't found and display an error message to the user.
2010-10-14 14:41:31 -04:00
John Resig
23263a967b
Make sure the document body exists before determining orientation change, at least.
2010-10-14 13:12:47 -04:00
John Resig
57e2eb6619
Updating copies of jQuery to 1.4.3rc2.
2010-10-14 13:06:52 -04:00
scottjehl
4a3e4ec427
added option trackTheme, which uses the btn-down state and defaults either a data-tracktheme attr, finding a themed parent, or 'd'.
...
Button "theme" option defaults to "b", and can be set through the data-theme attr.
Fixes #168
2010-10-14 09:24:51 -04: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
2f497bc06e
select menus only use the overlay style if $.support.scrollTop is true. This makes selectmenus usable on Palm
2010-10-13 18:36:10 -04:00
scottjehl
3ad6166991
scroll to top before page transition as well. That way the loading screen will show up without having to position it.
2010-10-13 18:30:01 -04:00
scottjehl
58ddf30bb6
add class to html when box-shadow is not supported.
2010-10-13 18:05:02 -04:00
scottjehl
3150f40064
Returns if $.support.scrollTop is false. Fixes #66
2010-10-13 17:30:51 -04:00
scottjehl
47e35832a9
Added two properties to support:
...
- boxShadow (tests that the property is defined and window.blackberry is false, as BB's shadows have no feathering)
- scrollTop (tests that the property is defined and that a webos property or two isn't defined, as Palm always reports 0)
Added an existence test for CSS properties, which is used for cssPseudoElement and boxShadow).
2010-10-13 17:25:14 -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
dda81a4b83
implemented icon theming
2010-10-12 17:09:06 -04:00
scottjehl
fd6d7b52f2
rafactored the buttons in collapsibles. uses an inner button for styling the icons.
2010-10-12 16:36:32 -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
c92e9f3eea
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-12 14:28:00 -04:00
scottjehl
930430ab2e
removed the event logger from core. Fixes #159
2010-10-12 14:27:48 -04:00
Scott González
cf4e3969f0
Removed console.log() calls.
2010-10-12 13:57:14 -04:00
scottjehl
0a7a9d8721
added support for data-counttheme attr
2010-10-12 13:40:06 -04:00
scottjehl
9843e9f7a1
reverting the polling interval
2010-10-12 11:59:23 -04:00
scottjehl
a9e984a062
made sure inner shadow is applied differently on search inputs
2010-10-12 11:43:52 -04:00
scottjehl
7339965765
polling setTop on an interval to test for improvements.
2010-10-12 11:43:52 -04:00
scottjehl
ddd18e5ec7
send focus to first page title, not any old page title. Just in case - prevents page jumps
2010-10-12 11:43:51 -04:00
scottjehl
c99b047333
only apply show/hide to first header, last footer on page
2010-10-12 11:43:51 -04:00
scottjehl
b83885d281
brought back active scope - didn't help to remove it
2010-10-12 11:43:51 -04:00
Scott González
2ac5e0a755
Wait for 750ms before triggering taphold. Trigger tap even if a taphold occurs.
2010-10-12 11:34:31 -04:00
scottjehl
6c3c308de1
removing scope on headerfooters to see if it helps positioning
2010-10-11 19:48:43 -04:00
scottjehl
3428753aa6
cleaned up theme inheritance logic a bit
2010-10-11 19:32:19 -04:00
scottjehl
faf0b66868
improved inherited theming of buttons, and controlgroup orientation
2010-10-11 19:15:02 -04:00
scottjehl
d8977cf937
made listviews default to C theme, now that any button theme will work
2010-10-11 18:59:03 -04:00
scottjehl
0f40e2d28a
fixed button initialization for regular role=button buttons so they can be used in controlgroups.
2010-10-11 17:48:20 -04:00
scottjehl
855961ee2d
apply theming to inputs using data-theme. background image is set to none, but color is used, along with ui-shadow-inset
2010-10-11 17:26:51 -04:00
scottjehl
4b08e0fc9d
enabled theming of sliders through data-theme. Fixes #152 Fixes #153
2010-10-11 16:55:10 -04:00
scottjehl
16ee84fd94
apply theming to checkboxes and radios through data-theme attr. Fixes #150 Fixes #151
2010-10-11 16:47:08 -04:00
scottjehl
35e97cc5df
enabled theming of select menu buttons through data-theme attr on select el. Fixes #149
2010-10-11 16:41:30 -04:00
scottjehl
4ff7738dbe
improved keyboard handling for desktop use. Now uses ARIA listbox role with option sub roles.
2010-10-11 16:35:24 -04:00
scottjehl
00567105c9
moved focus for buttons over to hover state. no ui-focus class, no outline (hover state provides visual affordance)
2010-10-11 16:32:49 -04:00
scottjehl
ddccb3bc4f
"content" divs no longer get auto-themed, but data-theme attrs will work
2010-10-11 15:50:15 -04:00
scottjehl
a26e0a0d6a
added "inline" option to buttons and button links. data-inline="true". Fixes #148
2010-10-11 15:47:30 -04:00
scottjehl
fe07a8d802
changed up the transitions
2010-10-11 14:56:16 -04:00
scottjehl
d960370138
annnnd one more. :) now we're good.
2010-10-11 14:44:51 -04:00
scottjehl
c4e0f5c19e
whoops typo ruined everything
2010-10-11 14:44:09 -04:00
scottjehl
effbaa9f58
Refactored select plugin.
2010-10-11 14:41:17 -04:00
scottjehl
01b9924f0b
behavior for auto-focusing title or first focusable element can now be disabled by returning pageshow or pagehide events false.
2010-10-11 14:40:58 -04:00
scottjehl
c09e92d7de
moved direction over to controlgroup plugin. This should be updated to use data-direction rather than type
2010-10-11 14:39:32 -04:00
scottjehl
1bd8e94227
First pass at convering selectmenu over to new page model. Now time for cleanup
2010-10-11 10:33:52 -04:00
scottjehl
afaf411bc2
enabled setting of icon type in regular listviews
2010-10-11 10:33:27 -04:00
scottjehl
70a07b9a4b
abstracted out the scripting for sending focus to the page title, or first focusable element. reFocus function - now called at page load and pageChange.
2010-10-10 21:50:11 -04:00
scottjehl
29913434bf
changed name of list grouping to list "divider". Affects class names, css applied, data-attr for configuration.
2010-10-10 21:28:22 -04:00
scottjehl
0ec600c1b3
Improved and expanded ARIA coverage to more components, including landmarks on common top-level page elements. Fixes #137
2010-10-10 21:17:49 -04:00
scottjehl
bc2363100c
scroll to top before page change. Fixes #133
2010-10-10 20:48:57 -04:00
scottjehl
f5ebfbcbd2
Fixed check for relative vs. absolute positioning of fixed toolbars. Now fullscreen toolbars will work as expected. Fixes #132
2010-10-10 20:43:00 -04:00
scottjehl
00d8f6b62d
Fixes #136
2010-10-10 20:36:53 -04:00
scottjehl
734e21816a
groupingtheme option is now exposed as data-groupingtheme. This should probably be renamed to "dividertheme", but for now, this Fixes #128 , Fixes #134 (duplicate bugs)
2010-10-10 18:17:26 -04:00
scottjehl
edaa43c479
on page show, focus directs to page title, or first focusable element if no title present. Improves a11y experience.
2010-10-10 18:06:29 -04:00
scottjehl
580c140311
added tabindex attr to page titles so we can direct focus there when pages are shown.
2010-10-10 17:57:35 -04:00
scottjehl
9aba756295
constrained toolbar show/hide to ui-page-active. Fixes #96
2010-10-10 16:43:19 -04:00
scottjehl
fb30ab9580
used new $.mobile.idStringEscape to create more meaningful urls and ids for generated sub-pages in nested lists. Fixes #81
2010-10-10 16:22:39 -04:00
scottjehl
8f48125a1d
added a generic string formatter $.mobile.idStringEscape for strings to be used in both IDs and URLs. The regexp may be overly simplified now, but it'll allow us to create more semantic identifiers from content in generated pages.
2010-10-10 16:17:45 -04:00
scottjehl
e18631800d
added ability to set data-icon on split buttons. Fixes #124
2010-10-10 15:43:58 -04:00
scottjehl
ead866636e
Added support for data-role="list-divider", and for readonly li's (those that have no child anchor). Fixes #121 , Fixes #122
2010-10-10 15:38:25 -04:00
scottjehl
8cbb6186dc
added data-nobackbtn attr to override auto-add of back buttons at the header level. Fixes #131
2010-10-10 15:15:45 -04:00
Scott González
5b2bbd7b9f
Allow preventing the default initialization for pages by canceling the pagebeforecreate event. Fixes #105 .
2010-10-09 14:45:16 -04:00
Scott González
74a66af37b
Converted $.mobilize to $.fn.page (and $.mobile.page via widget factory).
2010-10-09 14:34:21 -04:00
scottjehl
5dbda8eb25
buttons now inherit theming from bar,body,and list (TBD) containers.
...
Consequently, when designing themes, button-A should be designed to pair well with bar,body,and list A.
This page shows a nice example of it in action:
http://jquerymobile.com/test/#_containers-states.html
Fixes #44
2010-10-09 09:22:27 -04:00
scottjehl
b6c482255e
whoa - that commit where I removed all the meta was a tad agressive (base tag was removed by mistake).
...
Re-added our base tag!
2010-10-09 08:29:01 -04:00
scottjehl
a8f1edc106
remove hash-setting functionality. Now expanded globalnavs are not deep-linkable.
...
Fixes #84
2010-10-09 01:08:13 -04:00
scottjehl
85c063eb94
If a [data-role="page"] div has an ID already when it is loaded, mobilize will wrap the page in a new div, transferring page-related data attrs to the wrapper (role,theme,fullscreen).
...
This prevents a ID from being overwritten for use in our page navigation model, which would have prevented css and scripting from applying.
Fixes #93
2010-10-09 00:41:01 -04:00
scottjehl
dc3ff3b67e
Input sliders can now be created using type="range". No data- attr necessary, though you can also use data-role="slider" with an input type of number (and on a select element as well).
...
Range Inputs will degrade to type=text, along with other shoddy input types.
Fixes #106
Fixes #118
2010-10-08 23:49:41 -04:00
scottjehl
8d8675dd84
updated to use $.mobilize for page building. Fixes issues with nested list styling as well.
2010-10-08 23:32:41 -04:00
scottjehl
702173eaae
renamed navlist to navbar.
...
Fixes #117
2010-10-08 23:26:04 -04:00
scottjehl
29a7daee60
mobilize now:
...
* applies data-themes appropriately to header,footer,page,and content roles
* finds first link in header or footer, applies left button class
* finds second link in header or footer, applies right button class
* if no left button, a back button is auto added (this can be disabled through $.mobile.addBackBtn)
* back buttons will not auto-add on the first page visited.
* all headings h1-6 are given ui-title class for constent styling in header and footer
* buttons in ui-bar,ui-header,ui-footer now all have consistent sizing and styling
Fixes #109
Fixes #114
Fixes #28
Fixes #116
2010-10-08 23:10:13 -04:00
scottjehl
daa76e00fa
enabled an opt-out for headers or footers that shouldn't follow on scroll. Just add [data-position="inline"]
2010-10-08 22:52:36 -04:00
scottjehl
7850c16e69
brought back the min/max scale so orientation change is clean. Still uncomfortable with choice between smooth orientation changes and ability to zoom...
2010-10-07 19:46:15 -04:00
scottjehl
194a76796a
removed auto-append meta tags except for viewport.
2010-10-07 18:35:17 -04:00
scottjehl
d50e73d7fc
made sure relative positioning never lets a header go higher than it's place in the document flow, or a footer lower than its place. Helps with dialogs.
2010-10-07 18:16:02 -04:00
scottjehl
ab48e7cce4
fixed transitions - one comma should have been a ;, and updated data usage in the process.
2010-10-07 17:49:51 -04:00
scottjehl
220673e973
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-07 17:48:24 -04:00
scottjehl
01214855b6
added ui-page class
2010-10-07 17:32:45 -04:00
Scott González
e788abe889
Improved input type degradation.
2010-10-07 17:26:33 -04:00
scottjehl
090d3256f1
removed appendto body - costly and we should be covered with z-index anyway
2010-10-07 16:47:37 -04:00
scottjehl
d0ea6f28db
removed noCache option. We'll need a better implementation that won't interfere with local dialogs (in dom at load)
2010-10-07 16:45:51 -04:00
scottjehl
7b37d7a7ab
removed support tests for display, position, overflow, floatClear, as media query support infers these are all good to go!
2010-10-07 15:46:46 -04:00
scottjehl
de53cfb930
Made all css and JS rely upon media query support. ("only all"). We can go back to the previous system, but so far, this seems to create a better divide than our previous support tests provided. 1-person discussion here: https://github.com/jquery/jquery-mobile/issues/#issue/29
2010-10-07 15:15:59 -04:00
scottjehl
4db915a3c3
if a button's iconpos is "notext" and it has no title attr, set its title attr to its text content
2010-10-07 11:39:23 -04:00
Scott González
5c3d35574f
Renamed files.
2010-10-07 11:30:48 -04:00
Scott González
3888ff81b6
Renamed files so case changing will hold.
2010-10-07 11:24:44 -04:00
Scott González
e5e115a925
Revert "Moving files so the case chaning will hold."
...
This reverts commit dacb03383f .
2010-10-07 11:19:34 -04:00
Scott González
d4c904eecb
Revert "Renaming files."
...
This reverts commit ae6bfba68f .
2010-10-07 11:19:21 -04:00
Scott González
ae6bfba68f
Renaming files.
2010-10-07 11:13:14 -04:00
Scott González
dacb03383f
Moving files so the case chaning will hold.
2010-10-07 11:09:00 -04:00
Scott González
d2538d645b
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-07 10:51:02 -04:00
Scott González
6f10fe2459
Renamed files from jQuery.* to jquery.*. Fixes #33 .
2010-10-07 10:50:10 -04:00
scottjehl
2ec76dffe4
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-07 10:48:54 -04:00
scottjehl
d3e9e590e7
Fixed #64
2010-10-07 10:48:39 -04:00
Scott González
711148c782
Re-number list views during filter. Fixes #112 - listview filter: re-apply JS-based OL numbering for fallback browsers.
2010-10-06 22:45:52 -04:00
Scott González
50b65063b9
List view filtering is now case insensitive.
2010-10-06 22:31:47 -04:00
scottjehl
c076f220dc
bound to change event and keyup
2010-10-06 18:34:09 -04:00
scottjehl
6a34c9b835
clicking the clear button will focus on the input and trigger change event.
2010-10-06 18:33:55 -04:00
scottjehl
61df062cc0
needed quotes on class - reserved word
2010-10-06 18:13:25 -04:00
scottjehl
28868f41dd
removed a couple vars referencing previously deleted code
2010-10-06 17:37:58 -04:00
scottjehl
f5ff30b681
removed the appended "results showing" text
2010-10-06 17:36:47 -04:00
scottjehl
c6318a1478
added some attributes and called customTextInput plugin
2010-10-06 17:07:52 -04:00
scottjehl
9e756ea9c1
enabled data-theming
2010-10-06 17:07:17 -04:00
Scott González
c45bb79619
Added filter option to listview.
2010-10-06 16:32:28 -04:00
Scott González
3be99ed98f
Converted listview over to the widget factory.
2010-10-06 15:14:59 -04:00
scottjehl
72b1ba48ab
added radio and checks to the input type blacklist and added an option $.mobilize to degradeHTML5inputs or not
2010-10-06 11:52:23 -04:00
scottjehl
795a5293ff
whitespace
2010-10-06 11:47:12 -04:00
scottjehl
3d5f22ab13
refactored to use a blacklist. Removed type as well.
2010-10-06 11:46:27 -04:00
jblas@adobe.com
8eae0124f3
My previous checkin for Issue 107 busted *all* back buttons. This checkin fixes things.
...
- Modified back button selectors in mobilize so they must be under a ui-header but not under a ui-listbox-header. This seems to keep everything working and allow the back button on customSelect listboxes to work as expected.
2010-10-06 01:01:23 -07:00
jblas@adobe.com
f1f84ce77d
Fixed #107
...
Back button for customSelect listbox causes navigate to previous page.
- Added return false to the click handler attached to the back button in the select code.
- Modified the selectors for ui-back in mobilize so they only find back buttons in ui-header that are direct descendants of the ui-page.
2010-10-06 00:22:25 -07:00
scottjehl
5e34201ddc
fixed some things with dialog's css and classes
2010-10-06 01:10:30 -04:00
scottjehl
c5ceff745c
inputs with type=search now get turned into search widgets. Their type then degrades to "text" . Demos updated to match changes.
2010-10-06 00:44:03 -04:00
scottjehl
160777a83a
replace HTML5 inputs that have crap browser implementations with type=text. data-type attribute retains initial type. Fixed #issue/71
2010-10-06 00:36:32 -04:00
scottjehl
76cf9845ef
moved datepicker demo to experiments
2010-10-06 00:16:43 -04:00
scottjehl
a9c352eb59
removed datepicker sample code
2010-10-06 00:11:02 -04:00
scottjehl
e1f661e1c2
fixed regression where no-js buttons were still being enhanced
2010-10-06 00:01:38 -04:00
scottjehl
540e1f3fb8
added a "clear" button to search input types
2010-10-05 23:54:51 -04:00
scottjehl
9a9d47e550
removed an unnecessary wrapper
2010-10-05 23:00:33 -04:00
scottjehl
71763d3dfa
pretty rough, but here's a functional attempt at rounded-corner switches
2010-10-05 22:57:13 -04:00
scottjehl
69f446d945
preliminary support for tap switching
2010-10-05 21:24:59 -04:00
scottjehl
0128ee46a1
trigger beforepageshow on first pageload as well
2010-10-05 21:24:36 -04:00
scottjehl
50f9c363e7
brought the corners back on regular sliders
2010-10-05 19:23:58 -04:00
scottjehl
6a885f88d4
refactored switch sliders to be more iPhone like.
2010-10-05 19:18:39 -04:00
scottjehl
82c041b23d
controlgroup only gets innerwrapped if there's a controlgroup label (legend element)
2010-10-05 18:34:41 -04:00
scottjehl
e5207475a9
renamed the classes to "switch". For sliders built from selects with more than 2 options, we can use the name "select". currently, only 2 options are supported for select sliders
2010-10-05 18:28:03 -04:00
scottjehl
722fb14f5b
needed a .length in the condition
2010-10-05 18:17:27 -04:00
scottjehl
e03d33ac9e
added inner wrapper for toggling layout in wider resolutions
2010-10-05 17:33:56 -04:00
scottjehl
4a7b7a0b2e
made sure icons aren't present in horizontal groups
2010-10-05 17:12:54 -04:00
scottjehl
03292aad53
brought back the check radio icons
2010-10-05 17:08:37 -04:00
scottjehl
83f6ff9eef
added support for fullscreen data attr on pages. When present, child headers and footers will be absolute positioned and invisible when hidden
2010-10-05 16:08:11 -04:00
scottjehl
0de4e457be
changed setTop logic so it works for abs or rel positioning for both headers and footers (rather than just footers)
2010-10-05 15:36:10 -04:00
scottjehl
b5eca5bd2a
Renamed Globalnav "Navlist". Fixed #95
2010-10-05 14:06:28 -04:00
scottjehl
55f9a18cce
changed to use both touchmove and scroll. Sometimes scroll is triggered without a touchevent, such as tapping the top chrome on iPhone.
2010-10-05 13:49:36 -04:00
scottjehl
deaf0d94d9
refactored the event handling for touch and scroll
2010-10-05 11:58:55 -04:00
scottjehl
6a12dcc3be
iconPos to iconpos.
2010-10-05 10:58:58 -04:00
scottjehl
f1f5102a23
removed resize and orientationchange event handler, as it fired all the time on iPhone. geez.
2010-10-04 20:18:32 -04:00
scottjehl
60d256c4b2
fixed toolbars are fixed toolbars are fixed
2010-10-04 20:09:10 -04:00
scottjehl
9b810283a6
triggered pageshow on first page load (prevPage will be an empty jq obj)
2010-10-04 19:17:54 -04:00
scottjehl
ecbe18d809
make sure stickyfooter is defined before checking length
2010-10-04 19:14:19 -04:00
scottjehl
dbd5e6cfb7
removed calls to jQuery.fixedToolbars.show(). to be moved to fixedheaderfooter plugin
2010-10-04 19:05:22 -04:00
scottjehl
ced22f6962
Sticky footers
...
Tag a footer div with data-id="foo" and it'll stay visible when transitioning to another page that has a footer of the same data-id.
Fixed #72
All proposed changes above are either implemented, or covered through alternate means.
2010-10-04 19:00:30 -04:00
scottjehl
9c49ae13fd
moved the portion where the TO page is appended to body to before the "beforepageshow" event is fired.
2010-10-04 18:25:11 -04:00
scottjehl
113f09f6c9
added two events: beforeload and load.
...
These are triggered on a ui-page before and after mobilize is executed on a newly loaded page.
Fixed #75
2010-10-04 18:00:31 -04:00
scottjehl
9be9ab6612
Added 4 events regarding page show and hide:
...
* beforepageshow
* beforepagehide
* pageshow
* pagehide
All are triggered before and after the pageChange function runs.
The event.target will always be a "ui-page" div, triggered on either the showing or hiding page.
The second argument passed to the callback function contains either a prevPage or nextPage property, referencing a jQuery object containing the opposite page.
2010-10-04 17:46:58 -04:00
scottjehl
faef8e6300
Comment no longer relevant. Could be thx @paulirish tho!
2010-10-04 17:01:14 -04:00
Kin Blas
02571b1945
Fix for issue 90 - customSelect displays value in button control instead of the option label.
...
- Added code to extract text for the currently selcted option index.
2010-10-04 13:35:59 -07:00
Kin Blas
349bcb190f
Added textfield types tel, url, and email to the selector list of customTextInput(). The HTML5 spec says these are also represented by textfields.
2010-10-04 13:11:41 -07:00
Kin Blas
83c46b1f79
Fix for issue 83 - customSelect() expects its containing page to be mobilized before it is invoked.
...
- Added code to mobilize that processes page and content roles prior to form element processing. I left the code that processes page and content roles in the main processing loop just in case pages/content are injected dynamically by other roles.
2010-10-04 13:03:54 -07:00
scottjehl
2e4c537783
a little refactor to improve support for icons, text-only, among other things. Demo page has 3 different globalnav variations now.
2010-10-04 12:50:25 -04:00
scottjehl
00e68353fa
shuffled the logic around a bit so specifying an iconPos will leave room for the icon, even if no icon is passed. This is useful when aligning items that don't all have icons
2010-10-04 12:48:32 -04:00
scottjehl
c484629e84
reworked the timing and styles for the pageLoading sequences in attempt to reduce blinky behavior. Small improvements...
2010-10-03 16:43:50 -04:00
scottjehl
1317c57863
whitespace only
2010-10-03 16:01:10 -04:00
scottjehl
9d342f4d9e
removed a superflous statement
2010-10-03 14:51:34 -04:00
scottjehl
14ba228989
nested lists can now use OL, in addition to UL.
2010-10-03 11:24:50 -04:00
scottjehl
13c10d4862
links with any target attr will not use ajaxClick (not just _blank)
2010-10-03 11:20:14 -04:00
scottjehl
762341fc52
moved the resetBaseURL call into the hashchange, instead of in ajaxClick
2010-10-03 09:58:26 -04:00
scottjehl
8a35ec8e37
make sure base url is reset for cached pages, in addition to newly loaded ones.
2010-10-03 09:48:52 -04:00
scottjehl
04cb593fc3
refactored base url logic to work in combination with a <base> element, so assets referenced in loaded pages have proper base paths.
2010-10-03 09:41:45 -04:00
scottjehl
71d1c7272a
made sure trailing slash is only added to baseURL when it's not an empty string.
2010-10-03 08:18:57 -04:00
scottjehl
592236d915
moved a variable to local scope
2010-10-02 15:54:47 -04:00
scottjehl
6297306a5b
Big overhaul of ajaxClick functionality so it'll support a base URL and properly fix relative URLS to be absolute to the page from which requests are made (both by http or xmlhttprequest)
2010-10-02 15:41:57 -04:00
scottjehl
dfb7942ea6
prevent triggering of ajaxclick when bubbling up from clicking an anchor
2010-10-02 15:29:46 -04:00
scottjehl
aeb2643bdc
Ajaxclick function will now detect if it's an external link, and if so, it won't use Ajax.
2010-10-02 12:18:45 -04:00
scottjehl
91c5b90c82
moved jquery.tmpl.js to converter demo folder, as the script is not part of mobile proper
2010-10-02 11:57:43 -04:00
scottjehl
22eecd11dc
refactored. globalnavs can now be generated on any div, and all they do is the "more" nav behavior. Plugin may need renaming...
...
in these demos, the globalnavs are inside a footer div.
2010-10-01 23:37:43 -04:00
scottjehl
ed96011a28
major refactor - now uses relative positioning.
...
Interactions still aren't perfect, but the code is cleaner!
2010-10-01 23:36:25 -04:00
scottjehl
b6239c02f7
removed references to globalnavs, as they'll need to be managed in a different way.
2010-10-01 18:45:46 -04:00
scottjehl
3f2c23b66d
added theming for headers and footers to switch statement
2010-10-01 18:45:21 -04:00
jzaefferer
f148dbdd69
Refactored $.mobilize further to optimize form and controlgroup init. Added some notes
2010-09-30 14:08:59 +02:00
jzaefferer
6eee755ab7
Added TODO comment, as custom select doesn't work on desktop browsers
2010-09-30 14:00:01 +02:00
Douglas Neiner
b2656c28a6
Fixed regression with radio and checkboxes
2010-09-29 13:32:36 -07:00
Douglas Neiner
e83fea8ddc
Fixed variable name on button changes
2010-09-29 13:11:48 -07:00
Douglas Neiner
61f3c3341f
Updated button to optimize readablity
2010-09-29 11:56:41 -07:00
scottjehl
012d79eb58
selector for datepicker hackaround was too broad.
2010-09-29 09:21:31 -07:00
scottjehl
7fe3d9a22f
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-28 08:57:31 -07:00
scottjehl
bfae696a58
removed some icon cruft from ui
2010-09-27 16:58:05 -05:00
scottjehl
75413a992b
unused selector
2010-09-27 16:55:03 -05:00
scottjehl
ad9165caa7
killed the shadow
2010-09-27 16:41:20 -05:00
scottjehl
0511300702
added super sketchy workaround for a datepicker demo. We can toss these out once we figure out how we'll properly include a datepicker.
2010-09-27 16:33:37 -05:00
scottjehl
43f3656a92
added datepicker js and css files (datepicker includes ui) for a temporary datepicker demo.
2010-09-27 16:30:56 -05:00
Kin Blas
0717106b94
Fixed issue 62: Multiple data-role="page" elements in a single document results in multiple markup insertion passes.
...
The function used to iterate over all pages was making reference to th e$el variable passed into mobilize(). This meant it was executing the same operation over *ALL* pages several times, once for each page in the document.
- Redefined $el in the funciton passed to the each() method.
2010-09-27 11:39:57 -07:00
Kin Blas
0a2a82102e
Fixed Issue 58 Fixed Headers/Footers Scroll with the document occassionally.
...
The bug seems to be caused by the fact that code inside show() is triggering a scrollstart event while still in the midst of handling the scrollstop event. This threw off the setting of showAfterScroll causing the currentstate to be stuck at "inline", so no hide/show code is ever triggered after that.
- Modified the scrollstart and sccrollstop callbacks to set showAfterScroll prior to calling show()/hide().
- movied the hide() call in scrollstart handler underneath the check for 'overlay'.
2010-09-24 11:09:45 -07:00
scottjehl
92c49bf97e
extended slider to support simple toggle switches based on select menus.
...
The logic will actually support multi-option selects as well, but the labels are flipped in order for switch-style controls, so if we want to support regular sliders from selects, the labels will have to be in forward order and beneath the slider bar.
2010-09-23 12:51:23 -04:00
Scott González
1a3b0131d4
Use touchend instead of touchmove for touch support - saves a byte.
2010-09-23 10:13:20 -04:00
Scott González
c106b7cb07
Use touchmove event for jQuery.support.touch detection. Fixes #57 .
2010-09-23 10:07:28 -04:00
scottjehl
149b071af1
added meta tags for fullscreen, bookmarking, etc. These will need some configurable options like jQtouch has
2010-09-22 13:54:52 -04:00
scottjehl
517e07059a
updated swipe event detection to use 30px minimum distance and 20px tolerance
2010-09-22 13:20:13 -04:00
scottjehl
218855357b
removing file in favor of previous changes.
2010-09-22 11:12:48 -04:00
scottjehl
da29904834
Replaced expandable plugin with basic scrollHeight vs. offsetHeight check that uses CSS transitions. Shaves about 4kb.
2010-09-22 11:09:06 -04:00
Scott González
cdac24a168
Don't treat right/middle clicks as taps.
2010-09-22 10:47:15 -04:00
Scott González
641aa54c11
Listview: Use .data() instead of .attr() for reading config values.
2010-09-22 10:26:04 -04:00
scottjehl
a78d5efbc5
made sure form controls with a role of nojs are not enhanced
2010-09-22 09:49:36 -04:00
Scott González
51bb4c9224
Updated jQuery.
2010-09-22 09:46:26 -04:00
jzaefferer
037729415c
Refactored slider code a bit, just a first pass.
2010-09-21 23:31:25 +02:00
Scott González
9c6f03ca00
Only listen to mousemove/touchmove and mouseup/touchend events after mousedown/touchstart is triggered. Improves performance by not listening to all move events.
2010-09-21 17:29:43 -04:00
jzaefferer
0cb179e9fe
Fixed collpsible typo.
2010-09-21 23:18:00 +02:00
jzaefferer
71a80f413a
Refactored mobilize to iterate over dataEls just once, removing about 10 filter calls.
2010-09-21 22:56:48 +02:00
scottjehl
8b5a1b0a1f
moved the percent fixer logic out of the if/else
2010-09-21 16:45:45 -04:00
scottjehl
a66fd2f296
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-21 16:43:24 -04:00
scottjehl
e6707af667
added aria support
2010-09-21 16:43:07 -04:00
jzaefferer
176dfcebab
Adding converter-demo. Not yet actually using cache.manifest, as that screws up testing on mobile devices. At least on Mobile Safari there is no way to clear that offline cache - none that I found so far.
2010-09-21 22:33:06 +02:00
scottjehl
3b7a717e92
more updates to slider css and js. Should have itemized commits, but this thing's still in first-pass status.
2010-09-21 16:07:23 -04:00
scottjehl
9ec0823443
needed to pass the event arg
2010-09-21 15:33:51 -04:00
scottjehl
8e3aa35931
return clicks false on handle
2010-09-21 15:32:35 -04:00
scottjehl
3d8ad26463
added slider auto-init code to mobilize function
2010-09-21 15:25:52 -04:00
scottjehl
4992d7b168
First pass at a simple slider plugin. Can be called on an input element with data-role="slider". Controls communicate both ways during use.
2010-09-21 15:25:23 -04:00
scottjehl
d35881628c
removed swipe event always bound to body.
2010-09-21 15:21:28 -04:00
scottjehl
53771bbb68
rewrote mobilize function to pre-fetch elements and filter based on the results. Avg time running mobilize function on home page went from ~120ms to ~85ms.
2010-09-21 12:24:12 -04:00
scottjehl
9e37d2c1e9
added a few lines to the $mobilize function to convert the roles of header/content/footer to classes.
...
updated ajaxform and globalnav to accommodate change
2010-09-21 10:56:50 -04:00
scottjehl
5ca0d616ad
updated both plugins to use the new nested hash URL scheme for deep-linking.
2010-09-20 18:22:19 -04:00
scottjehl
af585dc8c7
Added support for nested urls through the following additions:
...
1. added the $.mobile object, for storing public options used in core and other plugins that should be made configurable externally, somehow.
2. With this change comes the first property $.mobile: subPageUrlKey, which defaults to "ui-page" and becomes the URL parameter for denoting a generated sub-page of a particular URL. For example, you can now deep-link to sub-levels of a nested listview like this:
jquerymobile.com/test/#_listview.html&ui-page=listview-2
...in which "listview-2" refers to a generated page created by _listview.html when mobilize() runs on it.
Note that this &ui-page parameter is used for splitting the hash to find the right part to use for the ajax request for the real url (_listview.html), while the ID of the actual subpage div really uses the whole thing: "_listview.html&ui-page=listview-2".
The other idea is that after the "&ui-page=" part, plugins should use an ID that reflects their widget name. For example, &ui-page=listview-2 or &ui-page=globalnav.
Before this change, subpages would use the whole hash without mentioning their parent page url, so you'd end up with blank pages if you hit refresh while viewing a generated sub-page.
2010-09-20 18:21:53 -04:00
John Resig
2484c41900
Use jQuery instead of $ to match the core style guideline.
2010-09-20 16:48:45 -04:00
scottjehl
2cafd2dc00
renamed autoform to ajaxform. All dependencies that use it are updated.
2010-09-20 10:47:49 -04:00
scottjehl
0726fe484c
added search icon
2010-09-19 19:03:16 -04:00
scottjehl
51f3fa2e2b
default to no auto-submit events.
2010-09-19 19:02:21 -04:00
scottjehl
845549949c
don't add ui-body class to form
2010-09-19 18:37:51 -04:00
scottjehl
ee001d1338
added logic for applying different classes and behavior to search inputs
2010-09-19 18:34:50 -04:00
scottjehl
c16dee657b
new attribute: data-role="nojs" can be applied to any element that should be accessibly hidden from the page for A browsers.
2010-09-19 18:21:09 -04:00
scottjehl
02a76c3f48
added the auto-init for autoforms to mobilize function
2010-09-19 18:15:02 -04:00
scottjehl
cc58c6e0f5
added jQuery.mobile.forms.autoform.js to the manifest
2010-09-19 18:14:40 -04:00
scottjehl
5c3ab41cf3
adding autoform plugin
2010-09-19 18:12:36 -04:00
scottjehl
14436257f6
made sure ui-page class is only added if there's no closest('.ui-page') present on it during mobilize call
2010-09-19 18:11:39 -04:00
scottjehl
8c7205c3ad
added 4 functions to $ namespace for use in external plugins
2010-09-19 18:09:05 -04:00
scottjehl
0782029b12
made $.mobilize available for externals
2010-09-19 17:57:06 -04:00
scottjehl
a3c1a3a57f
uncommented line to fade in content after loading finishes
2010-09-19 15:21:28 -04:00