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
c11bdcca0d
Merge remote branch 'origin/master'
2011-01-31 22:11:32 -05:00
scottjehl
a51adb98c4
updated the readme with more helpful information
2011-01-31 22:11:28 -05:00
Jesse Streb
34260225a7
Removing height: 120% as it appears to have caused unnecessary flickering and by setting the min-height of each page creation is unnecessary.
2011-01-31 21:42:38 -05:00
scottjehl
d509404b72
Merge remote branch 'origin/master'
...
Conflicts:
js/jquery.mobile.navigation.js
2011-01-31 17:33:25 -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
f842b46474
added data-rel attrs to close buttons
2011-01-31 17:05:41 -05:00
scottjehl
44806bcf58
added a dialog to the demo
2011-01-31 16:51:20 -05:00
scottjehl
b112b6ea84
updated doc version #
2011-01-31 16:45:41 -05:00
toddparker
9337a3acc9
Deleting design files.
2011-01-31 11:05:44 -05:00
toddparker
3420389be8
Removing some design source files from Git b/c it's slowing down the repo.
2011-01-31 10:57:00 -05:00
John Bender
591593dd49
misplaced semicolon
2011-01-31 00:13:01 -08:00
John Bender
770ff8edfb
added test to check that changePage is called when a embedded page is referenced and rel=external is defined
2011-01-31 00:01:17 -08:00
adammessinger
cb4f540645
Fixes #900 - buttons with rel attribute set to external don't show active state
2011-01-30 23:43:53 -08:00
John Bender
8b5f083974
whitespace and missing semicolon in setTimeout for non webkit animationComplete
2011-01-30 22:03:30 -08:00
Alex Kovar
4830ac9e9b
tweak for animationComplete
2011-01-30 23:00:51 -06:00
Alex Kovar
62af59983f
made $.fn.animationComplete behave more consistently between webkit/non-webkit. Closes gh-918
2011-01-30 17:06:33 -06:00
scottjehl
c470278a62
added data-direction to "back" link in content, in case the deep-linked page is opened first.
2011-01-30 16:54:33 -05:00
scottjehl
c0585948bb
set a max width on the datepicker for desktop preview
2011-01-30 15:57:47 -05:00
scottjehl
2f9d1bce33
position loading message either center screen (if scrollTop supported), above active clicked button (if defined), or 100px off the top. Fixes #892
2011-01-30 13:34:45 -05:00
John Bender
badefe1ee1
whitespace and missing semicolon fix
2011-01-30 00:19:15 -08:00
John Bender
202ed5ff2c
corrected failing tests in navigation
2011-01-29 22:50:48 -08:00
scottjehl
db422561f7
Merge remote branch 'origin/master'
2011-01-29 10:30:53 -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
58cb69788c
bound slider drag event handling to touch and mouse events, which allows us to support Opera Mobile and others. Fixes #852
2011-01-28 15:47:03 -08:00
scottjehl
b4c8e2f98e
moved search input clear buttons over to "tap" event
2011-01-28 15:20:56 -08:00
toddparker
b919b2af5b
Cut down file size by removing extra screenshots
2011-01-28 18:06:22 -05:00
toddparker
d6ee8138bc
Added all the design source files for the mobile widgets, icons and site
2011-01-28 17:52:59 -05:00
scottjehl
1b72203096
checks and radios no longer check when a scroll starts on top of them. Fixes #893
2011-01-28 14:39:58 -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
adammessinger
1585f7d729
Fix for issue #890 : missing -moz-linear-gradient parameters in theme CSS
2011-01-29 00:16:25 +08:00
John Bender
e35952346f
whitespace correction for docs
2011-01-27 23:48:06 -08:00
John Bender
2dfa09bcf7
updated docs to include $.mobile.nativeSelectMenus
2011-01-27 23:42:56 -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
1afb3a08f0
whitespace corrections in core
2011-01-27 22:53:17 -08:00
John Bender
3197f7e61a
corrected a duplicate id which was causing the two similarly identified selects to have doubled menu page header titles
2011-01-27 22:50:40 -08:00
John Bender
d1ab6bb027
fixed broken select menu test
2011-01-27 22:44:23 -08:00
toddparker
5b7201ef48
Added documentation and demos for the new data-native="true" option that speeds up performance of selects by using the browser's native menu (thanks John Bender!)
2011-01-27 13:40:20 -05:00
John Bender
b1d356bfd7
Merge branch 'nativeselectmenu'
2011-01-27 09:50:40 -08:00
Jesse Streb
d3077b491c
[455] Am now setting the min-height of a page so that the address bar can always be hidden on a silent scroll. This helps our transitions feel smoother as the page does not jump down if the page is not taller then 100% of the window. On orientation change we also update this value.
2011-01-27 12:28:04 -05:00
Jesse Streb
378fb51225
[ #455 ] For the transitions we now have overflow: hidden in order to limit the flickering. We always scroll to the top before we start our transitions in order to make it scroll. The CSS changed to have overflow: hidden during transitions and have a height that is larger enough to keep the address bar hidden.
2011-01-27 12:28:04 -05:00
scottjehl
e2c66fad49
Merge remote branch 'origin/master'
2011-01-26 22:15:10 -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
3ade4e3448
removed outlines on active, focus states in favor of theme hover states
2011-01-26 22:46:06 -05:00
scottjehl
df05143371
edited some nav model info - needs filling out, but outdated info is removed now at least
2011-01-26 22:44:32 -05:00
scottjehl
9a492d06fd
allow form data to be passed to $.mobile.changePage as a query string or object.
2011-01-26 22:04:36 -05:00
scottjehl
61bee4e276
fixed issue with select menus not opening again after you close them.
2011-01-26 21:02:08 -05:00
scottjehl
7ba7315e27
added markup example to datepicker documentation
2011-01-26 20:53:13 -05:00