Commit graph

51 commits

Author SHA1 Message Date
ehynds
9e6a3df6b1 make sure the options cache is updated after a refresh, and that the click handler reads from this cache. 2011-01-12 22:01:50 +08:00
Kin Blas
8a70cdb3de Initial patch from pull 672 had incorrect check for backbtn data value. Changed it from $this.data("backbtn") === false to $this.data("backbtn") !== false to match the original logic that was in place prior to the patch.
Original patch missed a nobackbtn reference in jquery.mobile.forms.select.js.
2011-01-11 09:34:50 -08:00
ehynds
edfafe0c01 if the close icon in a full-page select is clicked on, fire the selectmenu close handler instead of the dialog close handler 2010-12-23 13:19:34 -05:00
ehynds
c982b93794 fixed a bug in single selects where clicking on a selected option would un-select it. this logic should only apply to multiple selects. 2010-12-08 15:45:23 -05:00
ehynds
1d2ef4f606 removed console.log statement 2010-12-08 09:43:24 -05:00
ehynds
43a6a3bb1b refactored header create logic to be consistent with the rest of the widget; fixed bug when using optgroups within a multiple select 2010-12-08 09:41:00 -05:00
ehynds
94ac0a88be fix placeholder logic 2010-12-07 18:05:26 -05:00
ehynds
9e30e54159 removed extraneous comment 2010-12-07 15:49:54 -05:00
ehynds
8eb553f884 multiple select functionality 2010-12-07 15:45:20 -05:00
scottjehl
6dce87a2ac hide placeholder options in selectmenu overlays. Fixes #607 2010-12-03 11:32:48 -05:00
ehynds
68150b5bec adding optgroup support. Fixes #567 2010-12-03 10:57:21 -05:00
ehynds
8062bf0a80 finish merge of select_event_bubbling or whatever i called that branch 2010-12-03 10:47:25 -05:00
ehynds
e2eb9e9298 add disabled option support. fixes #350 2010-12-03 22:30:08 +08:00
ehynds
12f011b7cc swap return false for event.preventDefault 2010-12-03 07:40:58 -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
93179f9a3d updated comment about license to match other jQuery projects - MIT "or" GPL 2010-11-19 22:47:47 -05:00
scottjehl
2ed21499d1 made sure address bar doesn't appear when opening select menu 2010-11-19 21:28:38 -05:00
scottjehl
a731e48e68 made sure select button gets active button class while open 2010-11-19 19:19:51 -05:00
scottjehl
76f5c26624 cleaned up css styles - ui-selectmenu instead of ui-listview 2010-11-19 19:15:48 -05:00
scottjehl
b2e306c667 removed theme coloring for selectmenu screen when in overlay mode. 2010-11-19 17:32:09 -05:00
scottjehl
b56939faf7 updated selectmenu to use position plugin for overlay version 2010-11-19 17:31:20 -05:00
scottjehl
7a37d2507d fixed error in selectmenu close function 2010-11-11 19:01:02 -05:00
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