Commit graph

781 commits

Author SHA1 Message Date
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
Kin Blas
b696bda01b Cleaning up a bunch of jslint errors and warnings. 2011-02-08 13:13:59 -08:00
John Bender
3ca20f8362 resolved small conflict in test fixtures 2011-02-07 22:33:49 -08:00
Kin Blas
1c9414d030 Fix for issue #997 - Syntax Error (line 1711) alpha 3
- Escaped the slash characters inside the brackets of the href regexp.
2011-02-07 11:43:55 -08:00
John Bender
a025c0bffc backed out autoInitialize moving to feature request backlog 2011-02-06 21:18:51 -08:00
Alex Kovar
d970c20e4c fixed error when from is undefined 2011-02-05 14:03:31 -06:00
Alex Kovar
79929949db fix issue with failed page load not releasing page transition lock 2011-02-05 14:00:31 -06:00
scottjehl
8dc5d0d79e fixed a regression in some android 2.2 devices where checkboxes were toggling on and off on every click. Fixes #935 as well. 2011-02-03 18:28:32 -05:00
scottjehl
bd79c32c9a Page min-height was being calculated with JS and it was far too tall. This moves the values into CSS with values that are aimed towards iPhone (as this is addressing an iPhone transitions issue with the address bar show/hide). 2011-02-03 17:22:23 -05:00
toddparker
8b728d8df7 Re-named the ui-icon-search used on search inputs to ui-icon-searchinput so I modified the script for search input to reflect this change 2011-02-03 13:38:07 -05:00
scottjehl
16c743ac39 In android 2.1 and 1.6, the split button anchor needed to be a sibling of the overall row button div in the LI. It seems this may be due to the event handlers bound to the div button, but I'm not entirely sure that's it. Either way, this workaround is straightforward and does not introduce issues in other browsers, so aside from the additional overhead involved in re-appending the links to the LIs, this fix is good to go. Fixes #874 2011-02-03 02:57:59 -05:00
John Bender
a79799e3b3 added step tests for keypress, removed data-step attribute check in favor of html5 range step attribute 2011-02-02 23:46:20 -08:00
John Bender
3a24aa4de6 Merge branch 'external-clear' of https://github.com/ajkovar/jquery-mobile into ajkovar-external-clear 2011-02-02 23:15:58 -08:00
scottjehl
67987925b4 property should not be defined in $.mobile. 2011-02-02 20:02:04 -05:00
Alex Kovar
e3a5dd5b09 fixed base undefined error in firefox 2011-02-02 13:10:40 -06:00
Alex Kovar
2754087fc7 externalize $.mobile.urlHistory.clear function 2011-02-02 12:58:27 -06: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
Davide Bertola
08b17e71cb Make button look pressed on touchstart event 2011-02-02 14:28:58 +08:00
John Bender
107fc25838 minor simplification to the on ready init 2011-02-01 22:04:05 -08:00
John Bender
0a7bdfd632 whitespace in mobile core 2011-02-01 22:04:05 -08:00
unknown
9caaa9cfde Added ability to control if $.mobile will automatically load first page/pages on dom ready using $.mobile.autoInitialize. 2011-02-01 22:04:05 -08:00
scottjehl
675deb1282 Merge remote branch 'origin/master' 2011-02-02 00:59:59 -05:00
John Bender
4ddc5c7dd5 Merge branch 'changepagefix' of https://github.com/ajkovar/jquery-mobile into ajkovar-changepagefix 2011-02-01 21:36:24 -08: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
4023e1bf68 select menus also need blurring on transition. 2011-02-02 00:11:16 -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
Jesse Streb
e15ce80702 moved the setTimeout within the transition to be in the success handler of the ajax response. We now wrap the transitionPages that we call after injecting the new page into the DOM within the setTimeout which fixes the same issue but limits to pages that are injected into the DOM and makes it more clear why we have the setTimeout 2011-02-01 21:44:23 -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
Alex Kovar
d4c8c3cee2 fix for $.mobile.urlHistory test 2011-02-01 14:08:19 -06:00
Alex Kovar
1eed03cf0c Fixed issue with simultaneous page transitions. Closes gh-856
Conflicts:

	js/jquery.mobile.navigation.js
	tests/unit/navigation/navigation_transitions.js
2011-02-01 14:07:17 -06: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
3f938fd2f9 fixed bug where a preset data-url was being prefixed by the base url, rather than replacing the whole hash. Fixes #591 2011-02-01 12:32:02 -05:00
scottjehl
6855363375 changing this selector to be more specific prevents an error in IE 7 (and win mobile). Support is coming :) 2011-02-01 11:53:32 -05:00
scottjehl
5e6e6019eb updated to jQuery 1.5 2011-02-01 11:37:00 -05:00
Mark Schuette
f640646877 added the ability to use the default behavior of links with data-ajax=false 2011-02-01 14:13:04 +08:00
chrisvire
d3376b7b5c Allow for data-theme attribute on list item 2011-02-01 14:03:36 +08:00
scottjehl
a5c8f86d10 links with no href attribute will not throw an error when clicked. Fixes #932 2011-02-01 01:01:41 -05:00
scottjehl
da1c615c8a inset listviews with a single item will get appropriate visual treatment. Fixes #469 2011-02-01 00:37:24 -05:00
scottjehl
eb2845d1dc fixed one additional back button condition mentioned in issue #930 where the back button is added to a page that is directly linked with no hash. All navigation tests passing. https://github.com/jquery/jquery-mobile/issues/issue/930 2011-02-01 00:32:59 -05:00
scottjehl
6eefb23406 changed the name of urlHistory.listeningEnabled to urlHistory.ignoreNextHashChange. The name more accurately reflects the purpose of this internal toggle. Unit tests included. Also Fixes #930 2011-01-31 23:56:56 -05:00
scottjehl
35b1df81e7 changePage was firing more than once because hash listening was not disabled long enough to prevent listening of the resulting async hashchange event after setting location.hash. This change makes urlHistory.listeningEnabled act as an internal toggle (as it used to), so it is only meant for ignoring a single hashchange event. A future change might be appropriate to change its name to something more like "ignoreNextHashChange".
Unit test included.

Fixes #930
2011-01-31 23:47:01 -05:00
scottjehl
3162428558 added hashListeningEnabled global flag. This is meant as a global config option for end users to disable hashchange listening (as opposed to urlHistory.listeningEnabled, which is an internal toggle). Unit test included. Fixes #748 2011-01-31 23:25:36 -05:00
scottjehl
3b5b615451 whitespace and code style 2011-01-31 22:43:17 -05:00
scottjehl
d509404b72 Merge remote branch 'origin/master'
Conflicts:
	js/jquery.mobile.navigation.js
2011-01-31 17:33:25 -05:00