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
scottjehl
110ba9e98e
remove active button class on touchmove. This could technically use some tolerance, but it goes back to active if the select ends up opening, so I think it's fine as is, without adding more logic. Credit goes to @davibe for the change.
2011-02-02 01:41:07 -05:00
scottjehl
a763bade42
whitespace only
2011-02-02 00:33:53 -05:00
scottjehl
4a6ec54472
no default prevention is needed in native mode, as button is a div rather than an anchor. Also bound to change to remove the active class, which makes the native menu version's button state behave better in Opera Mobile 10.1
2011-02-02 00:25:12 -05:00
scottjehl
cfceeced2e
wrapped if condition order
2011-02-02 00:02:59 -05:00
scottjehl
91ee3fbfca
Merge remote branch 'origin/master'
2011-02-01 21:45:33 -05:00
scottjehl
0648247260
further shielding of non-native actions from native menus, and styled select within a parent div rather than anchor, when native is used.
2011-02-01 21:03:41 -05:00
scottjehl
36301b70bf
optimizations to prevent unnecessary overhead of menu markup creation or manipulation when native select option is true.
2011-02-01 20:49:07 -05:00
Kin Blas
179061a4c9
Fix for Issue #678 - Select list offset above top of screen.
...
- Wait for the "silentscroll" event before setting focus. This avoids the "feature" where the browser will automatically offset rendering of a container to make sure whatever has focus is visible.
2011-02-01 17:14:15 -08:00
scottjehl
70f4acdd04
selectmenu: moved the list building logic over to use an arrays and joins to speed things up.
2011-02-01 19:28:30 -05:00
scottjehl
aad8ac174a
Removed the extra ways to set nativeMenu option in select plugin. Now like other plugins, the option is both available through the plugin's options (nativeMenu) or through a data-attribute (data-native-menu), which is automated through the camelcase option name. Unit tests updated
2011-02-01 13:27:35 -05:00
scottjehl
b3a8230638
This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details:
...
- jquery.mobile.core.js no longer creates pages from every page and dialog in the DOM automatically at domready. Instead, pages are created as they are referenced via changePage, which can speed up pageload in multi-page documents, and means local "dialogs" referenced via data-rel="dialog" no longer need a data-role="dialog" attribute when served.
- in changePage, "from" is now allowed to be undefined. This simplifies the logic involved in showing the first page, which never had a "from" page, and previously needed a custom pageChange workaround to accommodate that.
- The pageshow event is no longer used as a callback for returning false and preventing the $.mobile.activePage from being set to the newly shown page. In other words, a page always becomes $.mobile.activePage once its shown now (the only reason this was optional before was because of a dialog restriction that's no longer true)
- the hashchange event logic for showing a particular page is now greatly simplified. It either shows the page referenced in location.hash, or if there's no hash it changes to the first page in the dom. This means every pageshow (including the first one) now uses pageChange internally.
- the hashchange event listener is no longer disabled when ajaxEnabled == false. Doing this before prevented local non-ajax page navigation from working properly. To disable hashchange listening, use $.mobile.urlHistory.listeningEnabled. We might consider defining (or moving) this on the $.mobile hash later as well for easier access.
- The internal var $.mobile.startPage is now $.mobile.firstPage, because it's not necessarily the page you started on, but merely a reference to the first "page" in the dom.
- Back buttons are auto-added to every page after the first one you first visit (this includes generated pages, such as those in a multipage document or nested listviews). Keep in mind that a "back" button does not take the place of a standard "home" link, and when building an app with jQuery Mobile, it's good to make use of both (particularly on deep-linked pages). Fixes #908
2011-01-31 17:05:57 -05:00
scottjehl
29fbc9c3c5
removed the Position plugin and modified selectmenu to position its menu without it. Removes off about 3-4kb after minify.
2011-01-29 07:15:40 -08:00
scottjehl
b10c5c04c2
don't destroy dialogs on close. Now same-page dialogs can be reopened after close, and selects don't need to unbind dialog change events to override the destroy.
2011-01-28 14:30:24 -08:00
John Bender
e5fd56985c
added global native select configuration, docs to follow. Also corrected selector error when reloading a lib in tests
2011-01-27 23:20:57 -08:00
John Bender
b1d356bfd7
Merge branch 'nativeselectmenu'
2011-01-27 09:50:40 -08:00
John Bender
d94e25acd6
merge from origin selectmenu fixes
2011-01-26 21:35:00 -08:00
John Bender
b81248f238
fixed android select menu failure with a delay. I'm doubtful that this is the best solution to the problem but the cause was the click being passed through to the screen or the select menu itself a split second after opening. Open to alternatives. Fixes #873
2011-01-26 21:20:40 -08:00
scottjehl
61bee4e276
fixed issue with select menus not opening again after you close them.
2011-01-26 21:02:08 -05:00
John Bender
244e46b8ed
data-native attribute check for native select menus Fixes #847
2011-01-25 23:12:20 -08:00