scottjehl
055bf14e3f
moved changePage, pageLoading, and silentScroll methods to $.mobile obj.
2010-11-11 15:03:40 -05:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
aca0062ac0
workaround that seems to get selects returning to their proper place after making a selection. Needs tuning, but works for now.
2010-11-11 00:16:54 -05:00
scottjehl
0702e26221
added menuPageTheme and overlayTheme options. overlayTheme defaults to "a" to use the black stroke.
2010-11-10 23:39:48 -05:00
scottjehl
049afd4568
improved defaults and added a demo page showing that all button data attrs work on selects too
2010-11-10 23:04:10 -05:00
scottjehl
532c918a26
updated data attribute support
2010-11-10 22:54:57 -05:00
scottjehl
91f287b3c6
improved enable/disable implementation
2010-11-10 22:48:31 -05:00
scottjehl
679094621f
changed to button reference
2010-11-10 22:43:30 -05:00
scottjehl
691752afd2
added aria-disabled attrs
2010-11-10 22:42:50 -05:00
scottjehl
129b68741f
moved menu building logic into _rebuild method, which is called by refresh if the option length is different than the list length (or if a true argument is passed to refresh(). Also moved mousedown events to "click", which dramatically improves keyboard navigation.
2010-11-10 22:31:05 -05:00
scottjehl
5716b89097
refactored select menu a bit to use new open and close methods
2010-11-10 21:40:20 -05:00
scottjehl
cc8c05091d
changed transition to pop and make sure history change is false
2010-11-10 19:13:36 -05:00
scottjehl
b1bded6dde
changed hideBrowserChrome function to "silentScroll". Scrolls to a particular location while disabling scroll event listening.
...
Function accepts a Y positioning argument, or defaults to 0 if undefined.
Now page transitions cache their previous scroll position when leaving, and that position will be remembered when revisting that page.
This change also includes a fix for webOS to use this new feature and set the previous scroll to the location of the clicked selectmenu (so after using the select, it'll scroll back to its location, even though webOS doesn't support scrolltop)
Fixes #355
2010-11-10 19:06:57 -05:00
scottjehl
3b5d12a207
shifting things around - mostly whitespace
2010-11-10 08:42:34 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05:00
scottjehl
ca25127469
added refresh method and theme inheritance to selectmenu widget. Fixes #371
2010-11-08 21:24:44 -05:00
scottjehl
3b8067151e
toggle ui-disabled class on disable/enable
2010-11-08 19:37:01 -05:00
scottjehl
f7a29fc201
converted selectmenu widget to the widget factory.
2010-11-08 19:33:45 -05:00
scottjehl
1c79129dd6
removed title attr, as aria role handling seems to be descriptive enough
2010-10-27 09:49:45 -04:00
scottjehl
21a7b0a2ba
updated to reflect new changes in pageChange function and dialog behavior
2010-10-21 17:02:59 -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
a0b814e26a
moved appends over to use $.pageContainer
2010-10-20 12:09:03 -04:00
scottjehl
c1e41e2f7a
took the transitions off the select menus when they go to full page - still having trouble with the changePage function when not used in combination with a hashchange.
2010-10-15 21:34:55 -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
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
fe07a8d802
changed up the transitions
2010-10-11 14:56:16 -04:00
scottjehl
effbaa9f58
Refactored select plugin.
2010-10-11 14:41:17 -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
Scott González
5c3d35574f
Renamed files.
2010-10-07 11:30:48 -04:00