John Bender
0e5583eae9
move to a centralized form element selector to leverage keepnative
2011-10-10 14:21:36 -07:00
Mat Marquis
085a104005
Fixes #2538 — Button wasn’t getting the appropriate “has-count” class.
2011-09-27 16:47:11 -04:00
John Bender
f1fef48239
add open and close as noop for people who might be looping over their selects and to self document the methods for extension
2011-09-12 16:53:56 -07:00
John Bender
ee6027a196
prefer defined theme from prototype or data options Fixes #2423
2011-09-12 09:08:48 -07:00
John Bender
729757b465
create selectOptions method so the values stay current across dom changes Fixes #2410
2011-09-09 09:00:46 -07:00
John Bender
28120ea929
fixed selected items bug
2011-08-10 13:35:05 -07:00
John Bender
09339ac534
grouped prive and public methods
2011-08-09 23:59:07 -07:00
John Bender
e12f5122bd
use cached value in button text method
2011-08-09 15:58:13 -07:00
John Bender
62e1631353
fix label class application bug
2011-08-09 15:50:42 -07:00
John Bender
12771afade
_create cleanup
2011-08-09 15:05:15 -07:00
John Bender
2839cfb469
small cleanup in naming and grouping
2011-08-09 14:52:31 -07:00
John Bender
0f072416cb
moved shared functionality into native and custom selects as necessary
2011-08-09 14:41:51 -07:00
John Bender
67e76a072b
removed options from shared, move theme determination to method
2011-08-09 13:47:40 -07:00
John Bender
974e4d0801
moved to event model for custom overrides, still need to centralize shared file
2011-08-08 16:19:52 -07:00
John Bender
ff8a1ceefa
.call on shared
2011-08-08 13:53:53 -07:00
John Bender
76adbc9293
minimize extension in individual widgets
2011-08-08 13:31:50 -07:00
John Bender
5c76de355a
shared components moved to shared init function
2011-08-08 12:52:32 -07:00
John Bender
64a9b595d3
start of seperation of native select
2011-08-08 11:40:26 -07:00
John Bender
bac747498f
small refactor before final split
2011-08-07 21:04:53 -07:00
John Bender
d293e968f9
moved _buildList into custom
2011-08-05 15:35:13 -07:00
John Bender
7494e398a5
moved open to custom and added a test for native select change removing the button down class
2011-08-05 14:45:08 -07:00
John Bender
3133ccbc3a
moved close to custom, and disable/enable methods common with tests for enable/disable
2011-08-05 12:21:45 -07:00
John Bender
c739597755
core style guide
2011-08-05 09:37:55 -07:00
John Bender
7e09b9af28
ghetto cherry pick of custom dialog fix for chrome redraw issue and height calculation stability
2011-08-05 09:32:40 -07:00
John Bender
58631807d4
moved common refresh functionality up
2011-08-02 16:00:37 -07:00
John Bender
edfef386b1
moved refresh to individual widgets, still some duplication to be moved into the common
2011-08-02 14:08:42 -07:00
John Bender
1d00ee316e
forgotten bind on pagehide to fix height calculation issues
2011-08-02 12:38:53 -07:00
John Bender
be0dbb9b10
fixed some minor whitespace issues
2011-08-02 09:30:28 -07:00
John Bender
3950542884
made sure the dialog test fails many times, added an extra todo for moving the functionality to find the current theme if its not specified to a generic location
2011-08-02 09:30:28 -07:00
John Bender
b8451c5557
moved element creation and propertie declaration into the common object
2011-08-02 09:29:01 -07:00
John Bender
6e343c20cb
fixed double wrap from local variables
2011-08-02 09:26:31 -07:00
John Bender
30c2e6c6a4
moved most of the build functionality to delegate objects
2011-08-02 09:26:31 -07:00
John Bender
0e7ded7709
create -> build, and list build up moved
2011-08-02 09:26:31 -07:00
John Bender
9014e243fb
custome menu select creation begun
2011-08-02 09:26:31 -07:00
John Bender
4aa32698de
move native menu creation to delegate object
2011-08-02 09:26:30 -07:00
John Bender
89e6f59bb3
Revert "removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit"
...
This reverts commit c318c5b7cf7d51a69438071cbfbcf307a27c7b7d.
2011-08-02 09:26:30 -07:00
scottjehl
db22dfa111
removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit
2011-08-02 09:21:21 -07:00
John Bender
f1d964e9e9
fix for cached page removal breaking dialog sized select menus Fixes #2181
2011-08-01 18:08:28 -07:00
Ghislain Seguin
30e8ea8e09
Coding standards
2011-07-28 15:25:57 -07:00
Ghislain Seguin
703d31073e
Merge pull request #2102 from kpozin/patch-6
...
Cache option indices in <li>s in custom select menus instead of doing linear search on every click
2011-07-28 15:21:52 -07:00
scottjehl
263193f490
Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable.
2011-07-27 18:42:16 -04:00
scottjehl
e07c40e3d0
exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector"
2011-07-26 14:22:08 -04:00
scottjehl
fdb77bfa52
changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions
2011-07-22 09:05:55 -04:00
scottjehl
64e6ef0e72
bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance".
2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9
This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
...
- Internally, each plugin self-initializes by binding to the pagecreate event.
- Unit tests have been added and adjusted to support some internal changes involved in this commit.
- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.
- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.
- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
Konstantin Pozin
8fb64a5ef9
Added cached <option> element indices to corresponding <li>s in custom select menus.
...
Removed redundant .eq() call.
2011-07-18 09:27:39 -07:00
John Bender
2e2f318562
whitespace and missing semi in select
2011-07-15 15:22:56 -07:00
scottjehl
ada46734ec
abstracted out some of the page hide behavior to fix issues with the close button not returning focus to the button after closing. Also fixes an issue where a full page custom menu would open as a misplaced small custom menu the second time it opens (if the menu was closed via the custom close button). Fixes #1618 . Fixes #1692 . Fixes #1750 .
2011-07-10 21:56:58 -04:00
Eugen
d581accfdb
#2018 - forms.select now uses $.mobile.defaultDialogTransition
2011-07-07 09:52:02 +02:00
John Bender
0774d6bfa0
move isOpen = true to the page show for dialog selects and to the bottom of the custom select logic branch to prevent timing issues
2011-06-29 10:43:30 -07:00