gseguin
6da588c394
Coding standards
2011-08-03 11:15:03 -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
Ghislain Seguin
8a9010d5e6
Coding standards
2011-06-28 22:06:30 -07:00
Rick Waldron
373c42d9ef
jQuery core style guide conformance: jquery.mobile.forms.select.js
2011-06-28 20:54:30 -04:00
Wolfram Twelker
41c1116aa2
Fixed ticket 1549 - no change event triggered on deselecting first
...
option in multiple-select
2011-06-11 17:12:15 +02:00
Kin Blas
3c792c58f0
Merge branch 'master' into navigation
...
Fixed Conflicts:
js/jquery.mobile.init.js
js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
Kin Blas
b96310eedf
- Externalize some of the nested functions in changePage().
...
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a , e775f5e8 , e597ccb3 , 084bbbd8 .
2011-05-16 16:02:26 -07:00
mark.dawn@gmail.com
4bccf1d8a6
some string literal fixes
2011-05-02 13:30:36 +05:30
mark.dawn@gmail.com
69a0a47a0c
XPATH Selector was not well formed of type label[for=ID]
...
let say id of an inputbox is x.y.z then query
$("label[for=x.y.z]") gonna fail
$("label[for=\"x.y.z\"]") gonna work
2011-04-26 19:31:43 +05:30
John Bender
cf23361a19
added the single call to local function focus button to ensure menu height calculation is accurate Fixes #1453
2011-04-21 22:30:39 -07:00
John Bender
16a38a61ea
fixed custom select dialog menu transition issues by preceding backward through history. This tightly couples the closing of custom select dialog menus to our hash change history implementation because of how it handles dialogs in dialogs.
2011-04-19 23:28:11 -07:00
John Bender
01c40c2525
select whitespace fixes
2011-04-19 23:28:11 -07:00
scottjehl
57649cd066
moved the listview a11y handling to just selectmenu custom menus, since that's the only place it's now relevant
2011-03-31 16:44:25 -04:00
jblas@adobe.com
729cda075a
Merge branch 'master' into fastclick
...
Resolved Conflicts:
js/jquery.mobile.buttonMarkup.js
js/jquery.mobile.event.js
js/jquery.mobile.forms.checkboxradio.js
js/jquery.mobile.forms.select.js
js/jquery.mobile.listview.js
2011-03-27 21:00:22 -07:00
scottjehl
56fd116236
make sure change event is fired on native select element when custom menu triggers a new selected item. Fixes #1109
2011-03-27 13:45:19 -04:00
scottjehl
58c0d1d1fb
no longer needed, as anchors now fill the LI and have no click handling applied.
2011-03-27 13:35:27 -04:00
scottjehl
f4e5492b9e
make sure close button on small multi-select menus still works. Fixes #1293
2011-03-27 13:21:16 -04:00
scottjehl
aab6cf4012
Fixed an issue where custom selects within dialogs always opened full-screen and not as overlays. Fixes #1277 . Note: this change removes code that stated Firefox had trouble with getting outerHeight on a hidden page, but I found that no longer to be true, so I'm assuming this was fixed in Core.
2011-03-27 13:15:06 -04:00
John Bender
4fe0b29a0f
Merge branch 'data-namespacing'
2011-03-25 18:46:00 -07:00
scottjehl
7503f62a10
changed our two new custom data helper names to jqmData() and :jqmData()
2011-03-25 17:50:40 -04:00
toddparker
ea074d1ef1
Set the global default for select menus to use the native instead of custom. Updated the docs and examples to match.
2011-03-25 12:44:46 -04:00
Ivan Rubanov
b35274a8a4
Fix for issue 1262
2011-03-24 07:33:46 +08:00
Kin Blas
7f8438e966
Merge branch 'master' into fastclick
...
Conflicts resolved:
js/jquery.mobile.forms.select.js
2011-03-18 09:15:01 -07:00
John Bender
63e8f6bfcb
resolved merge conflicts and fixed 2 tests
2011-03-15 23:57:17 -07:00
scottjehl
4e13021a53
fixed bug where clicking back twice after opening a dialog select was causing the main page to hide. history.back was being called twice in some cases when clicking the custom close button. Fixes #1007
2011-03-15 18:23:24 -04:00
scottjehl
83e7aeb4a5
when the select's options don't match the list item options, it should be rebuilt. Fixes #1240
2011-03-15 12:00:39 -04:00
Kin Blas
dbcf4d0373
Merge branch 'master' into fastclick
2011-03-14 11:38:00 -07:00
scottjehl
4c42be503d
tabindex shouldn't be -1 on nativemenu button
2011-03-14 00:20:25 -04:00
John Bender
b4bc09e3b3
clarification and whitespace fix
2011-03-12 23:02:11 -08:00
John Bender
a6b14b9cab
indentation in select open
2011-03-12 22:58:21 -08:00
John Bender
bc70fedb20
select whitespace cleanup
2011-03-12 22:56:36 -08:00
scottjehl
ea60207c1b
changed custom data method to $.fn.mobileData() and updated plugins that use it.
2011-03-09 23:27:21 -05:00
scottjehl
9e91fa6752
updated docs with jq namespace, found some more stragglers
2011-03-09 21:03:40 -05:00
scottjehl
2e7ee89ec3
updated attr lookups to use namespace
2011-03-09 20:49:42 -05:00
scottjehl
ce34ece257
namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS
2011-03-09 20:47:44 -05:00
Kin Blas
48389d1ee1
Fixed bad variable name in teardown method of jquery.mobile.vmouse.js. It was causing an error that made one() bindings fail to fire off their handlers.
...
Modified select and slider code to use virtual events.
Modified tap and taphold code to make use of the virtual events.
2011-02-18 17:39:04 -08:00
chrsMon
bbee2fdb2b
Fixes issue #1036 partially offscreen rendering of select menu
...
https://github.com/jquery/jquery-mobile/issues/issue/1036
The css styles the select menu with a width of 80% with a max-width of
350px. This fix checks if width of select menu is less than max-width.
If that is the case the select menu is centered on screen. If not it
checks if the rigth or left side of the select menu are outside the
viewport and if so moves the select menu inside the viewport with a 30px
tolerance.
2011-02-13 21:11:53 +01:00
scottjehl
b464b1bcec
added a workaround for the selectmenu plugin's nativeMenu in Opera. Opera browsers improperly support opacity on select elements, either hiding the menu button but not its text (in Mini), or hiding the text but not the button. Either way, it makes our hidden-select trick look really bad, or unusable. This workaround adds a class to the select in Opera, and makes the native menu visible. In the case of a false positive, that's not a bad outcome. Fixes #897
2011-02-02 12:04:18 -05:00